forked from SciTools/iris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into enable_spelling_check
* master: refactor setup.py to setup.cfg (SciTools#4168) update docs pypi release (SciTools#4173) Update CI environment lockfiles (SciTools#4137) update CONTRIBUTING.md (SciTools#4165) RTD support link update (SciTools#4166) drop py36 support (SciTools#4163) github issues contact link for discussions (SciTools#4164) Bump black version (SciTools#4162) Stop CI from clobbering commits on lockfile updates (SciTools#4157) [pre-commit.ci] pre-commit autoupdate (SciTools#4161) Add a method to return a CubeList from CubeList.copy() (SciTools#4094) Update black et al (SciTools#4155)
- Loading branch information
Showing
37 changed files
with
378 additions
and
605 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -1 +1,13 @@ | ||
See the [Developers Guide](https://scitools-iris.readthedocs.io/en/latest/index.html#development-index) | ||
# Contributing to Iris | ||
|
||
Want to contribute to Iris? But don't know where to start 🤔 | ||
|
||
We recommend that you first checkout our advice to [First Time Contributors](https://github.com/SciTools/iris/issues/4133), | ||
which has some solid suggestions on where to begin. | ||
|
||
Otherwise, head over to our [Developers Guide on Getting Involved](https://scitools-iris.readthedocs.io/en/stable/developers_guide/contributing_getting_involved.html) | ||
for all the information you need to start on your Iris development journey. | ||
|
||
Still need help or advice? | ||
|
||
Then join us over on our [Iris GitHub Discussions](https://github.com/SciTools/iris/discussions). We'd love to hear from you! |
This file contains 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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
# reference: https://docs.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: 💬 Iris GitHub Discussions | ||
url: https://github.com/SciTools/iris/discussions | ||
about: Engage with the Iris community to discuss your issue |
This file contains 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 |
---|---|---|
|
@@ -14,24 +14,62 @@ name: Refresh Lockfiles | |
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
clobber: | ||
description: | | ||
Force the workflow to run, potentially clobbering any commits already made to the branch. | ||
Enter "yes" or "true" to run. | ||
default: "no" | ||
schedule: | ||
# Run once a week on a Saturday night | ||
- cron: 1 0 * * 6 | ||
|
||
|
||
jobs: | ||
|
||
no_clobber: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# check if the auto-update-lockfiles branch exists. If it does, and someone other than | ||
# the lockfile bot has made the head commit, abort the workflow. | ||
# This job can be manually overridden by running directly from the github actions panel | ||
# (known as a "workflow_dispatch") and setting the `clobber` input to "yes". | ||
- uses: actions/script@v4 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
if (context.eventName == "workflow_dispatch") { | ||
const clobber = context.payload.inputs.clobber || "no"; | ||
if (["yes", "true", "y"].includes(clobber.trim().toLowerCase())) { | ||
core.info("Manual override, continuing workflow, potentially overwriting previous commits to auto-update-lockfiles"); | ||
return | ||
} | ||
} | ||
github.repos.getBranch({...context.repo, branch: "auto-update-lockfiles"}).then(res => { | ||
const committer = res.data.commit.commit.committer; | ||
if (committer && committer.name === "Lockfile bot") { | ||
core.info("Lockfile bot was the last to push to auto-update-lockfiles. Continue."); | ||
} else { | ||
core.setFailed("New commits to auto-update-lockfiles since bot last ran. Abort!"); | ||
} | ||
}).catch(err => { | ||
if (err.status === 404) { | ||
core.info("auto-update-lockfiles branch not found, continue"); | ||
} | ||
}) | ||
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 | ||
needs: no_clobber | ||
|
||
strategy: | ||
matrix: | ||
python: ['36', '37', '38'] | ||
python: ['37', '38'] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -62,14 +100,16 @@ jobs: | |
path: artifacts | ||
|
||
- name: Update lock files in repo | ||
run: | | ||
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 | ||
committer: "Lockfile bot <[email protected]>" | ||
author: "Lockfile bot <[email protected]>" | ||
delete-branch: true | ||
branch: auto-update-lockfiles | ||
title: Update CI environment lockfiles | ||
|
This file contains 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 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 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 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 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 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 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 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.