-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1.02 KB
/
coverage.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
name: Run tests and upload coverage
on: push
jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install typing_extensions pytest pytest-cov pytest-asyncio setuptools
- name: Install cython
run: pip install cython==3.0.12
- name: compile
run: cythonize -i -3 ididi/graph.pyx ididi/_node.py ididi/_ds.py
- name: Install graphviz
run: pip install graphviz
- name: Run tests
run: pytest tests/ --cov=ididi --cov-report html
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}