-
Notifications
You must be signed in to change notification settings - Fork 307
CI lockfiles #4108
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
Merged
CI lockfiles #4108
Changes from 21 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
a9a4757
introducing lock files for testing
jamesp 642a03e
Testing github refresh workflow
jamesp bb444a8
Update refresh-lockfiles.yml
jamesp bd58e70
Update refresh-lockfiles.yml
jamesp f6c2ca5
Action making lockfiles and setting as artifacts
jamesp 596d2a0
Update refresh-lockfiles.yml
jamesp 9dea68d
Update refresh-lockfiles.yml
jamesp 81ba3aa
Update refresh-lockfiles.yml
jamesp 26b3e35
Update refresh-lockfiles.yml
jamesp 5552016
Update refresh-lockfiles.yml
jamesp ddb3a8e
Added PR creation
jamesp b20615c
Cleanup refresh-lockfiles.yml
jamesp 8f71bc1
Update .cirrus.yml
jamesp fc07f17
Update refresh-lockfiles.yml
jamesp 22e325d
Back to cartopy 0.18
jamesp 2ce13b2
Merge branch 'ci-lock' of github.com:jamesp/iris into ci-lock
jamesp 153254d
Script for updating lockfiles
jamesp 59c93b1
License header on update_lockfiles script
jamesp 45311ee
testing reupload_on_changes key in nox cache
jamesp 35570d0
Documentation update
jamesp 0305416
Added whats new entry
jamesp 39c3b6b
Fixed a horrendous number of typos
jamesp 90a0599
Type annotations in the noxfile completed
jamesp 8480c21
switched os.path -> pathlib in tools/update_lockfiles.py
jamesp 48e39b5
Apply suggestions from @trexfeathers code review
jamesp a539b25
Updated imagehashes
jamesp 5b3e876
Updated documentation of the github workflow
jamesp e3af577
Merge branch 'ci-lock' of github.com:jamesp/iris into ci-lock
jamesp 3301584
Updated image hash for anomaly log plot
jamesp 5241637
Reverting imagerepo.json to state at 48e39b57
jamesp 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 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
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,73 @@ | ||
| # This workflow periodically creates new environment lock files based on the newest | ||
| # available dependency pacakges on conda-forge. | ||
| # | ||
| # For environments that have changed, a pull request will be made and submitted | ||
| # to the master branch | ||
|
|
||
| name: Refresh Lockfiles | ||
|
|
||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| # Run once a week on a Saturday night | ||
| - cron: 1 0 * * 6 | ||
|
|
||
|
|
||
| jobs: | ||
|
|
||
| gen_lockfiles: | ||
| # this is a matrix job: it splits to create new lockfiles for each | ||
| # of the CI test python versions. | ||
| # this list below should be changed when covering more python versions | ||
| # TODO: generate this matrix automatically from the list of available py**.yml files | ||
| # ref: https://tomasvotruba.com/blog/2020/11/16/how-to-make-dynamic-matrix-in-github-actions/ | ||
| runs-on: ubuntu-latest | ||
|
|
||
| strategy: | ||
| matrix: | ||
| python: ['36', '37', '38'] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: install conda-lock | ||
| run: | | ||
| source $CONDA/bin/activate base | ||
| conda install -y -c conda-forge conda-lock | ||
| - name: generate lockfile | ||
| run: | | ||
| $CONDA/bin/conda-lock lock -p linux-64 -f requirements/ci/py${{matrix.python}}.yml | ||
| mv conda-linux-64.lock py${{matrix.python}}-linux-64.lock | ||
| - name: output lockfile | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| path: py${{matrix.python}}-linux-64.lock | ||
|
|
||
| create_pr: | ||
| # once the matrix job has completed all the lock files will have been uploaded as artifacts. | ||
| # Download the artifacts, add them to the repo, and create a PR. | ||
| runs-on: ubuntu-latest | ||
| needs: gen_lockfiles | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: get artifacts | ||
| uses: actions/download-artifact@v2 | ||
| with: | ||
| path: artifacts | ||
|
|
||
| - name: Update lock files in repo | ||
| run: | | ||
| cp artifacts/artifact/*.lock requirements/ci/nox.lock | ||
| rm -r artifacts | ||
|
|
||
| - name: Create Pull Request | ||
| uses: peter-evans/create-pull-request@052fc72b4198ba9fbc81b818c6e1859f747d49a8 | ||
| with: | ||
| commit-message: Updated environment lockfiles | ||
| delete-branch: true | ||
| branch: lockfiles | ||
| branch-suffix: timestamp | ||
| title: Update CI environment lockfiles | ||
| body: | | ||
| Lockfiles updated to the latest resolvable environment. | ||
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,2 @@ | ||
| lockfiles: | ||
| python tools/update_lockfiles.py -o requirements/ci/nox.lock requirements/ci/py*.yml |
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
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
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.