Skip to content

Commit c23f1f6

Browse files
committed
Add GitHub Actions workflow to run using NumPy 2
1 parent df26b2b commit c23f1f6

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build NumPy 2
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
# Scheduled runs only on the origin org
10+
if: (github.event_name == 'schedule' && github.repository_owner == 'sgkit-dev') || (github.event_name != 'schedule')
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.9", "3.10", "3.11"]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt -r requirements-dev.txt
26+
pip install -U numpy
27+
- name: Run pre-commit
28+
uses: pre-commit/[email protected]
29+
- name: Test with pytest (numba jit disabled)
30+
env:
31+
NUMBA_DISABLE_JIT: 1
32+
run: |
33+
# avoid guvectorized functions #1194
34+
pytest -v sgkit/tests/test_pedigree.py
35+
pytest -v sgkit/tests/io/vcf/test_vcf_writer_utils.py
36+
- name: Test with pytest and coverage
37+
run: |
38+
pytest -v --cov=sgkit --cov-report=term-missing

0 commit comments

Comments
 (0)