Skip to content

Commit

Permalink
Test against Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
ffl096 committed Nov 18, 2024
1 parent a57e69d commit 43ebca0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,40 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "pyproject.toml"

# karateclub forces us to use an older SciPy version without wheels for
# Python 3.13. We need to install the build dependencies for SciPy to
# install SciPy from source.
- name: Install Build Dependencies
if: ${{ matrix.python-version == '3.13' }}
run: |
sudo apt-get update
sudo apt-get build-dep scipy
- name: Install main package [pip]
run: |
pip install "karateclub @ git+https://github.com/benedekrozemberczki/karateclub@cb46a91df8dcbeb2570debcf6a9d0c518107a2de"
pip install -e .[all]
- name: Typecheck [mypy]
run: |
mypy -p topoembedx
- name: Run tests [pytest]
run: |
pytest --cov --cov-report=xml:coverage.xml
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
Expand Down

0 comments on commit 43ebca0

Please sign in to comment.