From d2c91de978db53b9d3233c65c89c5518220921cf Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Fri, 22 Mar 2024 17:04:43 -0500 Subject: [PATCH] ci: Update CI workflows to support testing Python 3.12 --- .github/workflows/ci.yaml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 89e032a..cd1153f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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