-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamp CI workflow, condense files and jobs down, using matrices where possible. Main idea: test with {earliest python+OS version, latest python+OS version}, and assume that if those work then everything in between will work too. Also fix subtle nasty bug with pipeline where a nested usage of the actions/checkout@v3 action caused inner the publish job always to run against the master branch.
- Loading branch information
Showing
33 changed files
with
666 additions
and
742 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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Analysis Top-level | ||
|
||
# Run: | ||
# | ||
# - Every month. Scheduling helps keep drift/issues with updates | ||
# to runners at bay. | ||
# - On pushes. | ||
on: | ||
push: | ||
paths: | ||
- 'sierra/**' | ||
|
||
schedule: | ||
- cron: '0 0 1 * *' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
analyze-ci-ubuntu-2004: | ||
uses: ./.github/workflows/analyze-nox.yml | ||
secrets: inherit | ||
with: | ||
os: ubuntu-20.04 | ||
|
||
analyze-ci-ubuntu-2204: | ||
uses: ./.github/workflows/analyze-nox.yml | ||
secrets: inherit | ||
with: | ||
os: ubuntu-22.04 | ||
|
||
analyze-ci-osx: | ||
uses: ./.github/workflows/analyze-nox.yml | ||
secrets: inherit | ||
with: | ||
os: macos-12 |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: OS Static Analysis | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
required: True | ||
type: string | ||
|
||
jobs: | ||
nox: | ||
runs-on: ${{ inputs.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ${{ inputs.os }} | ||
|
||
# 2024/08/26: Test the earliest and latest supported version, to speed | ||
# up CI. | ||
python-version: | ||
- 3.8 | ||
- 3.11 | ||
|
||
session: | ||
- lint | ||
- docs | ||
- analyze_pytype | ||
- analyze_mypy | ||
|
||
exclude: | ||
- python-version: 3.11 | ||
os: ubuntu-20.04 | ||
|
||
- python-version: 3.8 | ||
os: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/sierra-setup | ||
|
||
- name: Run nox | ||
run: | | ||
nox --pythons ${{ matrix.python-version }} --sessions ${{ matrix.session }} |
Oops, something went wrong.