Skip to content

Commit

Permalink
Update test workflow; add python 3.12 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierBinette authored Nov 29, 2023
1 parent 282bb8b commit 95e44a5
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,23 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Doctest modules
- name: Pytest
run: |
pip install -e .[test]
pip install .[test]
pytest --doctest-modules --ignore-glob=examples/*
- name: Pytest
run: |
pytest
- name: Distribution tests
- name: Wheel distribution tests
run: |
python setup.py sdist bdist_wheel
python -m venv dist_test_env
source dist_test_env/bin/activate
pip install dist/*.whl
pytest tests
pytest tests

0 comments on commit 95e44a5

Please sign in to comment.