-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (43 loc) · 1.21 KB
/
ci.yml
File metadata and controls
53 lines (43 loc) · 1.21 KB
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
name: CI
on:
push:
pull_request: ~
jobs:
ci:
name: Run CI
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
uses: actions/setup-python@v5
id: python
with:
python-version-file: pyproject.toml
- name: Register Python problem matcher
run: |
echo "::add-matcher::.github/workflows/matchers/python.json"
- name: Run pre-commit
run: |
uv venv venv
. venv/bin/activate
uv pip install -e '.[testing]'
uv pip install pre-commit pytest-github-actions-annotate-failures
pre-commit install-hooks
pre-commit run --show-diff-on-failure --color=always --all-files
- name: Run pytest
run: |
. venv/bin/activate
pytest \
-n auto \
-qq \
--timeout=20 \
--durations=10 \
--cov nanokvm \
--cov-config pyproject.toml \
-o console_output_style=count \
-p no:sugar \
tests
coverage report --fail-under=62