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 cc5b3a3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,39 @@ 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: |
apt 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 cc5b3a3

Please sign in to comment.