-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (35 loc) · 960 Bytes
/
Copy pathtests.yml
File metadata and controls
42 lines (35 loc) · 960 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: Run Tests
on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Install
run: |
uv sync --all-extras
- name: Run tests
run: |
uv run pytest -n auto -vv --cov=nodebpy --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
if: matrix.os == 'macos-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: coverage.xml
- name: Upload coverage reports to Codecov
if: matrix.os == 'macos-latest'
uses: codecov/codecov-action@v3