forked from dashdot/python-x11_hash
-
Notifications
You must be signed in to change notification settings - Fork 70
ci: modernize CI matrix, pin actions, and refresh docs #19
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
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
bc248a2
ci: update action versions to latest
thephez aa94f69
ci: update to ubuntu 22.04
thephez 403d935
ci: exclude versions not on 24.04
thephez c8ec907
ci: add 20.04 back in
thephez 7f2a5d1
ci: add Python 3.11-3.14 and restructure test matrix
thephez 181d9a2
ci: include OS in job display name
thephez a733a67
ci: split workflow into modern and legacy Python jobs
thephez c7949ec
ci: consolidate into single build job and drop oldest Pythons
thephez 2158f99
ci: only test 3.7 on 22.04
thephez 5765eec
docs: update supported Python version to 3.7+
thephez dcf1e99
ci: rename workflow and add manual trigger
thephez 32df5fa
ci: add weekly scheduled run
thephez 9ada8ea
ci: test EOL Python 2.7, 3.5, 3.6 via Docker images
thephez 88773d2
ci: also test Python 3.8 and 3.9
thephez 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,50 @@ | ||
| name: Build and Test C++ and Python | ||
| name: Build and Test Python C Extension | ||
|
|
||
| on: [push, pull_request] | ||
| on: | ||
| push: | ||
| pull_request: | ||
| schedule: | ||
| - cron: '17 8 * * 1' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: [ '2.7', '3.5', '3.6', '3.7', '3.10' ] | ||
| os: ['ubuntu-20.04', 'ubuntu-latest'] | ||
| exclude: | ||
| - python-version: 3.5 | ||
| os: ubuntu-latest | ||
| - python-version: 3.6 | ||
| os: ubuntu-latest | ||
| python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14' ] | ||
| os: ['ubuntu-22.04', 'ubuntu-latest'] | ||
| include: | ||
| - { python-version: '3.7', os: ubuntu-22.04 } | ||
| runs-on: ${{ matrix.os }} | ||
| name: Build and test with Python ${{ matrix.python-version }} | ||
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
|
thephez marked this conversation as resolved.
|
||
| - name: Setup python | ||
| uses: actions/setup-python@v2 | ||
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - run: | | ||
| python -m pip install -r requirements.txt . | ||
| python test.py | ||
| yes | python -m pip uninstall dash-hash | ||
|
|
||
| legacy: | ||
| # Python 2.7/3.5/3.6 are no longer published by actions/setup-python for | ||
| # the available runner images, so they are tested inside the official EOL | ||
| # Docker images, which still ship a working interpreter and gcc. | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| image: [ 'python:2.7-buster', 'python:3.5-buster', 'python:3.6-buster' ] | ||
| runs-on: ubuntu-latest | ||
| container: ${{ matrix.image }} | ||
| name: ${{ matrix.image }} | ||
| steps: | ||
| # buster's glibc (2.28) is new enough to run checkout's bundled Node, so | ||
| # the same pinned version as the build job can be used here. | ||
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| - run: | | ||
| python -m pip install . | ||
|
thephez marked this conversation as resolved.
|
||
| python test.py | ||
| yes | python -m pip uninstall dash-hash | ||
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
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.