Release 24.9 #132
Workflow file for this run
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
name: Latest Python Support | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
# Define the job to run before your matrix job | |
get-python-versions: | |
runs-on: ubuntu-latest | |
outputs: | |
python-matrix: ${{ steps.get-python-versions-action.outputs.latest-python-versions }} | |
steps: | |
- uses: snok/latest-python-versions@v1 | |
id: get-python-versions-action | |
with: | |
min-version: '3.12' | |
test: | |
needs: [get-python-versions] | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-latest, windows-latest, macOS-latest ] | |
python-version: ${{ fromJson(needs.get-python-versions.outputs.python-matrix) }} | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python on ${{ matrix.operating-system }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' # caching pip dependencies | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements.txt -r test-requirements.txt | |
- name: Lint | |
run: | | |
python -m black --line-length=120 --check . | |
python -m check_python_versions --expect 3.6- --only setup.py | |
- name: Test | |
env: | |
TEST_CONFIGURATION_ACCESS_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }} | |
run: python -Werror -m pytest |