Repository navigation
70 lines (56 loc) · 1.5 KB
/
Copy pathtests.yml
File metadata and controls
70 lines (56 loc) · 1.5 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Run Tests
on:
workflow_dispatch:
schedule: # Run every day at midnight (UTC)
- cron: '0 0 * * *'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- 'assets/**'
push:
branches:
- main
- develop
paths-ignore:
- '**.md'
- 'assets/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.85.0
components: rustfmt, clippy, llvm-tools
- uses: astral-sh/setup-uv@v5
with:
python-version: "3.13"
- name: Install dependencies
run: uv sync --all-extras
- name: Build applications
run: make build
- name: Check formatting
run: make format-check
- name: Run lints
run: make lint
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Run Rust tests with coverage
run: cargo llvm-cov --workspace --lcov --output-path lcov.info
- name: Run Python tests with coverage
run: uv run pytest --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: lcov.info,coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}