-
Notifications
You must be signed in to change notification settings - Fork 24
36 lines (32 loc) · 947 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.11", "3.12"]
numpy-version:
- "numpy==1.26.4" # current colab version
- "numpy~=2.0" # 2.0 series
# numba (0.60.0) does not yet support numpy 2.1, disable this for now
# - "numpy~=2.1" # 2.1 series
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install package
run: pip install "${{ matrix.numpy-version }}" .[dev]
- name: Run unit tests
run: pytest -v tests --ignore tests/integration --typeguard-packages=malariagen_data,malariagen_data.anoph