Skip to content

Commit d8fec91

Browse files
authored
Add Python compatibility workflow
1 parent fb0791b commit d8fec91

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Python compatibility
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python-version: ["3.11", "3.12", "3.13", "3.14"]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Install package
23+
run: |
24+
python -m pip install -U pip
25+
python -m pip install -e ".[dev]"
26+
27+
- name: Check dependency consistency
28+
run: python -m pip check
29+
30+
- name: Print resolved versions
31+
run: |
32+
python -c "import sys; print(sys.version)"
33+
python -c "import numpy, pandas, scipy, scanpy, decoupler; print('numpy', numpy.__version__); print('pandas', pandas.__version__); print('scipy', scipy.__version__); print('scanpy', scanpy.__version__); print('decoupler', decoupler.__version__)"
34+
35+
- name: Run tests
36+
run: pytest

0 commit comments

Comments
 (0)