Skip to content

Commit

Permalink
Add Python 3.12 to the CI workflow (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaskivskyi authored Nov 23, 2023
1 parent 7d91e1f commit 5fc5b9d
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,27 @@ on:
schedule:
- cron: "0 0 * * *"

env:
DEFAULT_PYTHON: 3.11

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
prepare:
name: Preparation
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11, 3.12]
outputs:
pip_cache_dir: ${{ steps.pip-cache.outputs.dir }}
steps:
- name: Checkout
uses: actions/[email protected]

- name: Set up Python ${{ env.DEFAULT_PYTHON }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ matrix.python-version }}

- name: Get pip cache directory path
id: pip-cache
Expand All @@ -51,16 +52,20 @@ jobs:
pip install -r requirements_test.txt
unit-tests:
name: Unit Tests
needs: prepare
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11, 3.12]
steps:
- name: Checkout
uses: actions/[email protected]

- name: Set up Python ${{ env.DEFAULT_PYTHON }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ matrix.python-version }}

- name: Get pip cache directory path
id: pip-cache
Expand Down Expand Up @@ -93,16 +98,20 @@ jobs:
path: unit-tests-cov.xml

device-tests:
name: Device Tests
needs: prepare
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11, 3.12]
steps:
- name: Checkout
uses: actions/[email protected]

- name: Set up Python ${{ env.DEFAULT_PYTHON }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ env.DEFAULT_PYTHON }}
python-version: ${{ matrix.python-version }}

- name: Get pip cache directory path
id: pip-cache
Expand Down Expand Up @@ -135,6 +144,7 @@ jobs:
path: real-data-tests-cov.xml

codecov:
name: Codecov
needs: [unit-tests, device-tests]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 5fc5b9d

Please sign in to comment.