-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (53 loc) · 1.65 KB
/
tests.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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: tests
on:
push:
branches: [ "main", "dev" ]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
python-version:
- 3.13.0
- 3.13t
name: test / ${{ matrix.os }} / ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
if: "!endsWith(matrix.python-version, 't')"
with:
python-version: ${{ matrix.python-version }}
- name: set up python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v3
if: endsWith(matrix.python-version, 't')
- if: endsWith(matrix.python-version, 't')
run: |
uv python install ${{ matrix.python-version }}
uv venv --python ${{ matrix.python-version }}
. .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
uv pip install pip
- run: python --version --version && which python
- name: system info
run: |
uname -a
cat /proc/cpuinfo
- name: install dependencies & cereggii
run: |
python -m pip install --upgrade pip
pip -V
pip install .[dev]
- name: test with pytest
run: |
pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml
- name: upload pytest test results
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.python-version }}.xml
if: ${{ always() }}