-
Notifications
You must be signed in to change notification settings - Fork 7
ci: simplify workflow setup and labels #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7c93a0d
ci: simplify GitHub workflow setup and labeling
pesap c7aa81d
fix(ci): resolve workflow quality failures
pesap 99b101f
fix(ci): remove custom CA cert env and rename setup job
pesap a7221fa
fix(ci): satisfy zizmor pedantic findings
pesap 43badef
refactor(ci): inline R2X check and enforce pedantic zizmor
pesap f1e79b4
fix(ci): restore docs required check name
pesap eed7aeb
ci: pin actionlint installer and fix labels
pesap 0e02076
ci: gate heavy runs and upload failure diagnostics
pesap 10a7390
ci: collect targeted failure diagnostics artifacts
pesap 64e9c8e
ci: simplify failure diagnostics artifact globs
pesap b3b7d45
ci: restore pull_request paths-ignore trigger
pesap fc98684
fixup! ci: simplify GitHub workflow setup and labeling
pesap 798d638
chore: Renaming inputs to switches and just leaving cases changes for…
pesap File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| name: Setup ReEDS Environment | ||
| description: Setup cached micromamba Python and/or Julia environment for ReEDS CI. | ||
|
|
||
| inputs: | ||
| setup-python: | ||
| description: Setup micromamba environment from environment.yml. | ||
| required: false | ||
| default: "true" | ||
| setup-julia: | ||
| description: Setup Julia toolchain. | ||
| required: false | ||
| default: "true" | ||
| julia-version: | ||
| description: Julia version to install. | ||
| required: false | ||
| default: "1.12.1" | ||
| instantiate-julia: | ||
| description: Run julia --project=. instantiate.jl. | ||
| required: false | ||
| default: "true" | ||
|
|
||
| outputs: | ||
| mamba-env-path: | ||
| description: Micromamba environment path. | ||
| value: ${{ steps.mamba.outputs.environment-path }} | ||
| julia-bindir: | ||
| description: Julia binary directory. | ||
| value: ${{ steps.setup-julia.outputs.julia-bindir }} | ||
|
|
||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Setup micromamba env | ||
| if: ${{ fromJSON(inputs.setup-python) }} | ||
| id: mamba | ||
| uses: mamba-org/setup-micromamba@add3a49764cedee8ee24e82dfde87f5bc2914462 # v2 | ||
| with: | ||
| environment-file: environment.yml | ||
| cache-environment: true | ||
| post-cleanup: "all" | ||
| cache-environment-key: ${{ runner.os }}-conda-${{ hashFiles('environment.yml') }} | ||
|
|
||
| - name: Restore Julia cache | ||
| if: ${{ fromJSON(inputs.setup-julia) }} | ||
| uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4 | ||
| with: | ||
| path: ~/.julia | ||
| key: julia-${{ runner.os }}-${{ hashFiles('Project.toml') }} | ||
| restore-keys: julia-${{ runner.os }}- | ||
|
|
||
| - name: Setup Julia | ||
| if: ${{ fromJSON(inputs.setup-julia) }} | ||
| id: setup-julia | ||
| uses: julia-actions/setup-julia@5c9647d97b78a5debe5164e9eec09d653d29bd71 # v2 | ||
| with: | ||
| version: ${{ inputs.julia-version }} | ||
|
|
||
| - name: Instantiate Julia project | ||
| if: ${{ fromJSON(inputs.setup-julia) && fromJSON(inputs.instantiate-julia) }} | ||
| shell: bash -le {0} | ||
| run: julia --project=. instantiate.jl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| version: 2 | ||
|
|
||
| updates: | ||
| - package-ecosystem: "conda" | ||
| directory: / | ||
| schedule: | ||
| interval: "weekly" | ||
| cooldown: | ||
| default-days: 7 | ||
| open-pull-requests-limit: 2 | ||
| labels: | ||
| - "dependencies" | ||
| reviewers: | ||
| - "kennedy-mindermann" | ||
| commit-message: | ||
| prefix: "build" | ||
| include: "scope" | ||
| rebase-strategy: "auto" | ||
|
|
||
| - package-ecosystem: "pip" | ||
| directory: / | ||
| schedule: | ||
| interval: "weekly" | ||
| cooldown: | ||
| default-days: 7 | ||
| open-pull-requests-limit: 2 | ||
| labels: | ||
| - "dependencies" | ||
| reviewers: | ||
| - "kennedy-mindermann" | ||
| commit-message: | ||
| prefix: "build" | ||
| include: "scope" | ||
| rebase-strategy: "auto" | ||
|
|
||
| - package-ecosystem: "julia" | ||
| directory: / | ||
| schedule: | ||
| interval: "weekly" | ||
| cooldown: | ||
| default-days: 7 | ||
| open-pull-requests-limit: 2 | ||
| labels: | ||
| - "dependencies" | ||
| reviewers: | ||
| - "kennedy-mindermann" | ||
| commit-message: | ||
| prefix: "build" | ||
| include: "scope" | ||
| rebase-strategy: "auto" | ||
|
|
||
| - package-ecosystem: "github-actions" | ||
| directory: / | ||
| schedule: | ||
| interval: "weekly" | ||
| cooldown: | ||
| default-days: 7 | ||
| labels: | ||
| - "dependencies" | ||
| reviewers: | ||
| - "kennedy-mindermann" | ||
| commit-message: | ||
| prefix: "build" | ||
| include: "scope" | ||
| rebase-strategy: "auto" |
|
pesap marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| dependencies: | ||
| - head-branch: | ||
| - '^dependabot/.+' | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "environment.yml" | ||
| - "pyproject.toml" | ||
| - "requirements*.txt" | ||
| - "Project.toml" | ||
| - "Manifest.toml" | ||
| - ".github/dependabot.yml" | ||
|
|
||
| github_actions: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - ".github/workflows/**" | ||
| - ".github/actions/**" | ||
| - ".github/scripts/**" | ||
|
|
||
| docs: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "docs/**" | ||
| - "**/*.md" | ||
| - "CITATION.cff" | ||
|
|
||
| release: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "CHANGELOG.md" | ||
| - "README.md" | ||
|
|
||
| tests: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "tests/**" | ||
| - "hourlize/tests/**" | ||
| - "reeds2pras/test/**" | ||
| - "**/test_*.py" | ||
| - "**/*_test.py" | ||
|
|
||
| model_changes: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "*.gms" | ||
| - "**/*.gms" | ||
|
patrickbrown4 marked this conversation as resolved.
|
||
| - "runbatch.py" | ||
| - "d_solve*.py" | ||
| - "reeds/**" | ||
| - "ReEDS_Augur/**" | ||
| - "Augur.py" | ||
| - "instantiate.jl" | ||
| - "reeds2pras/**" | ||
|
|
||
| data_changes: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "inputs/**" | ||
| - "hourlize/inputs/**" | ||
| - "postprocessing/**/inputs/**" | ||
| - "**/*.csv" | ||
| - "**/*.h5" | ||
| - "sources.csv" | ||
| - "sources_documentation.md" | ||
|
|
||
| hourlize: | ||
| - changed-files: | ||
| - any-glob-to-any-file: "hourlize/**" | ||
|
|
||
| input_processing: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "input_processing/**" | ||
| - "preprocessing/**" | ||
|
|
||
| postprocessing: | ||
| - changed-files: | ||
| - any-glob-to-any-file: "postprocessing/**" | ||
|
|
||
| reeds2pras: | ||
| - changed-files: | ||
| - any-glob-to-any-file: "reeds2pras/**" | ||
|
|
||
| switches: | ||
| - changed-files: | ||
| - any-glob-to-any-file: | ||
| - "cases.csv" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this workflow do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependabot helps keep our dependencies up to date by automatically suggesting bumps for any hot-fixes by dependencies.