Skip to content

Commit

Permalink
Add Python 3.10, 3.11, 3.12 to the testing (#454)
Browse files Browse the repository at this point in the history
* Add Python 3.10 to the testing
* Update python-test.yaml
https://devguide.python.org/#status-of-python-branches
Also, allow pip's new dependency resolver to work by providing multiple dependencies in the same command.

---------

Co-authored-by: ppstacy <ppstacy@gmail.com>
  • Loading branch information
cclauss and ppstacy committed Dec 1, 2023
1 parent ae6c28e commit d26e089
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
# You can use PyPy versions in python-version.
# For example, pypy2 and pypy3
# For example, pypy3.10
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
run: python --version
- name: Install dependencies
run: |
sudo apt install graphviz
pip install -U pip
pip install -U setuptools
pip install --upgrade pip
pip install --upgrade setuptools
python -m pip install .[test]
python setup.py build_ext --inplace
- name: Test with pytest
Expand Down

0 comments on commit d26e089

Please sign in to comment.