-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (39 loc) · 927 Bytes
/
test_code.yml
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
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: pre-commit/action@v3.0.1
run_regressions:
name: Test code
needs: pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python 3.12
run: uv python install 3.12
- name: Generate references from reference version
run: bash generate_references.sh
working-directory: tests
- name: Install venv
run: uv venv
- name: Install dependencies
run: |
sudo apt-get install libglu1-mesa
uv pip install -e ".[dev]"
- name: Test
run: uv run pytest -n auto