-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.09 KB
/
Copy pathpython.yml
File metadata and controls
45 lines (43 loc) · 1.09 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
name: Python package
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
jobs:
build:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
check-latest: true
- name: Install uv and sync dependencies
run: |
python -m pip install --upgrade pip
python -m pip install uv
uv sync --all-groups
- name: Lint with flake8
run: |
uv run bash py-lint.sh
- name: Check static types with ty
run: |
uv run ty check traceflow tests
- name: Test with pytest
run: |
uv run pytest -sv tests
- name: Generate coverage report
run: |
sudo apt-get install -y lcov
uv run coverage run -m pytest -sv tests
uv run coverage html --omit tests/*.py
uv run coverage lcov
ls
# Coverage is now in htmlcov/