-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (63 loc) · 1.67 KB
/
pytest.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Modified from GitHub Actions template
name: QA
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
Pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
version: "0.5.7"
- name: Install model
run: USE_CYTHON=1 uv sync --frozen --extra dev
- name: Test with pytest
run: |
uv run pytest --cov-report xml:cov.xml --cov=ecoli --cov=reconstruction --cov=wholecell --cov=runscripts --durations=0
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: cov.xml
format: markdown
indicators: true
output: both
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
Mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
version: "0.5.7"
- name: Install model
run: USE_CYTHON=1 uv sync --frozen --extra dev
- name: Mypy
run: |
uv run mypy
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
version: "0.5.7"
- name: Install model
run: USE_CYTHON=1 uv sync --frozen --extra dev
- name: Ruff
run: |
uv run ruff check doc ecoli migration wholecell runscripts validation reconstruction