forked from vercel/python-typemap
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 935 Bytes
/
test.yml
File metadata and controls
37 lines (30 loc) · 935 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
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python
run: uv python install 3.14
- name: Install dependencies
working-directory: packages/typemap
run: uv sync --group dev
- name: Run tests with coverage
working-directory: packages/typemap
# test_cqa.py runs ruff/mypy on project itself, causes circular issues in CI
run: uv run pytest --ignore=tests/test_cqa.py --cov=src --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: packages/typemap/coverage.xml
flags: unittests
name: typemap
fail_ci_if_error: false
verbose: true