-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 969 Bytes
/
run_tests.yml
File metadata and controls
42 lines (38 loc) · 969 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:
- develop
tags: # ignores tag pushes
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
python-version:
- "3.10"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Environment
uses: ./.github/actions/setup_environment
with:
python-version: ${{ matrix.python-version }}
- name: Run tests & coverage
run: |
uv run coverage run -m pytest --no-header -v test
uv run coverage report -m -i
uv run coverage html -i
- name: Archive coverage results
if: startsWith(matrix.os, 'ubuntu')
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: htmlcov