-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 957 Bytes
/
backend-tests.yml
File metadata and controls
35 lines (33 loc) · 957 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
name: Backend Tests
on:
push:
paths:
- '**/*.py'
- 'tests/**'
- '.github/workflows/backend-tests.yml'
- 'requirements-ci.txt'
pull_request:
paths:
- '**/*.py'
- 'tests/**'
- '.github/workflows/backend-tests.yml'
- 'tauri-ui/package.json'
jobs:
backend-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: echo "PYTHONPATH=$(pwd)" >> $GITHUB_ENV
- run: |
python -m pip install --upgrade pip
pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements-ci.txt
- run: |
python -m pytest --cov=engine --cov-report=term --cov-report=xml tests/unit/
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: backend
fail_ci_if_error: true