Skip to content

Commit

Permalink
Merge pull request #276 from PowerGridModel/feature/add-nightly
Browse files Browse the repository at this point in the history
add nightly
  • Loading branch information
mgovers authored Sep 30, 2024
2 parents cb03804 + 5aa851a commit 267272c
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 8 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-test-and-sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,25 @@ on:
pull_request:
# run pipeline on merge queue
merge_group:
# run pipeline from another workflow
workflow_call:
inputs:
create_release:
type: boolean
description: Create a (pre-)release when CI passes
default: false
required: false
# run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
create_release:
type: boolean
description: Create a (pre-)release when CI passes
default: true
default: false
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-main
cancel-in-progress: true

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-blocking-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-blocking-labels
cancel-in-progress: true

jobs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/check-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ on:
pull_request:
# run pipeline on merge queue
merge_group:
# run pipeline from another workflow
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-code-quality
cancel-in-progress: true

jobs:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/citations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ on:
paths:
- CITATION.cff
- .github/workflows/citations.yml

pull_request:
paths:
- CITATION.cff
- .github/workflows/citations.yml

# run pipeline from another workflow
workflow_call:
# run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-citations
cancel-in-progress: true

jobs:
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0

name: Nightly build

# Controls when the workflow will run
on:
workflow_dispatch:
schedule:
- cron: "0 2 * * *" # Based on UTC time

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-nightly
cancel-in-progress: true

jobs:
main:
uses: "./.github/workflows/build-test-and-sonar.yml"
permissions:
contents: write
with:
create_release: false

check-code-quality:
uses: "./.github/workflows/check-code-quality.yml"

reuse-compliance:
uses: "./.github/workflows/reuse-compliance.yml"

citations:
uses: "./.github/workflows/citations.yml"
6 changes: 5 additions & 1 deletion .github/workflows/reuse-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ on:
pull_request:
# run pipeline on merge queue
merge_group:
# run pipeline from another workflow
workflow_call:
# run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-reuse-compliance
cancel-in-progress: true

jobs:
Expand Down

0 comments on commit 267272c

Please sign in to comment.