Skip to content

Commit

Permalink
ci: Update CI workflows to support testing Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Mar 22, 2024
1 parent c6b2801 commit d2c91de
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,33 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install --no-cache-dir -e .[test]
pip list
python -m pip install --upgrade '.[test]'
python -m pip list
- name: Lint with Flake8
if: matrix.python-version == 3.7 && matrix.os == 'ubuntu-latest'
if: matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
run: |
flake8 --exclude=tests/* --ignore=E501,W503
- name: Test with pytest
run: |
python -m pytest
pytest
- name: Report coverage with Codecov
if: github.event_name == 'push' && matrix.python-version == 3.7 && matrix.os == 'ubuntu-latest'
if: github.event_name == 'push' && matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v1

0 comments on commit d2c91de

Please sign in to comment.