-
Notifications
You must be signed in to change notification settings - Fork 49
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
Quick round of CI improvements #459
Changes from 5 commits
006315d
2cbd36c
859d27b
6296071
d082614
fb06b51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,45 +7,47 @@ on: | |
pull_request: | ||
workflow_dispatch: | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
# Run tests on each OS/Python combination | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
# TODO: Add windows-latest when gpg issues are solved | ||
os: [ubuntu-latest, macos-latest] | ||
toxenv: [py] | ||
|
||
include: | ||
- python-version: 3.8 | ||
- python-version: "3.11" | ||
os: ubuntu-latest | ||
toxenv: purepy38 | ||
- python-version: 3.8 | ||
toxenv: purepy311 | ||
- python-version: "3.11" | ||
os: ubuntu-latest | ||
toxenv: py38-no-gpg | ||
- python-version: 3.8 | ||
toxenv: py311-no-gpg | ||
- python-version: "3.8" | ||
os: ubuntu-latest | ||
toxenv: lint | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout securesystemslib | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Find pip cache dir | ||
id: pip-cache | ||
run: echo "::set-output name=dir::$(pip cache dir)" | ||
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: this step and the next one could be removed: setup-python now supports pip cache using with-arguments:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, nice. Thanks for pointing this out! I just pushed an extra patch to make this change. |
||
|
||
- name: pip cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 | ||
with: | ||
# Use the os dependent pip cache directory found above | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
|
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.
These changes result in the name of the 'check' changing and therefore breaking our branch protection policy.