-
Notifications
You must be signed in to change notification settings - Fork 75
66 lines (62 loc) · 1.77 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
58
59
60
61
62
63
64
65
66
name: tests
on: [push, pull_request]
jobs:
static_analysis:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Installing requirements
run:
python -m pip install -r requirements.txt
- name: Static analysis
run: pre-commit run --all
scons_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-20.04", "ubuntu-24.04", "macos-14"]
python: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Installing python requirements
run:
python -m pip install -r requirements.txt
- name: Installing ubuntu requirements
if: ${{startsWith(matrix.os, 'ubuntu')}}
run:
scripts/ubuntu_dependencies.sh
- name: Installing macos requirements
if: ${{startsWith(matrix.os, 'macos')}}
run:
scripts/macos_dependencies.sh
- name: Building
run: scons -j$(nproc || sysctl -n hw.logicalcpu)
full_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-20.04", "ubuntu-24.04", "macos-14"]
python: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Installing ubuntu requirements
if: ${{startsWith(matrix.os, 'ubuntu')}}
run:
scripts/ubuntu_dependencies.sh
- name: Installing macos requirements
if: ${{startsWith(matrix.os, 'macos')}}
run:
scripts/macos_dependencies.sh
- name: Installing rednose
run: pip install -e .[dev]
- name: Running all tests
run: pytest