-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (35 loc) · 942 Bytes
/
test.yml
File metadata and controls
42 lines (35 loc) · 942 Bytes
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
name: test
on:
pull_request:
push:
branches: [main]
jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install the project
run: uv sync
- name: run tests
run: |
uv run pytest \
--mpl --mpl-default-tolerance=10 \
--cov=pyrenew --cov-report term --cov-report xml .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
env_vars: OS,PYTHON
fail_ci_if_error: true
flags: unittests
file: coverage.xml
plugin: pycoverage
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true