-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (35 loc) · 869 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
37
38
39
40
41
42
43
44
45
name: Test
on: [push, pull_request]
permissions:
contents: read
jobs:
unit_test_linux:
name: linux-cp${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache dependency binaries
id: cache-bin
uses: actions/cache@v3
with:
key: bin
path: |
~/.local/bin
~/.cache/pip
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version}}
- name: Install package
run: |
pip install -e ".[ants]"
- name: Install test dependencies
run: |
pip install pytest
- name: Run tests
run: |
pytest tests/unit