-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (41 loc) · 1.06 KB
/
pytest-ubuntu.yml
File metadata and controls
52 lines (41 loc) · 1.06 KB
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
name: Run python tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run_python_tests:
name: Run python tests on ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.9', '3.13' ]
steps:
- name: checkout repo & submodules
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: display Python version
run: python --version
- name: install system packages
run: |
sudo apt -y update
sudo apt -y install libboost-dev
- name: install python dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install cmake ninja
- name: install threads with dev dependencies
run: |
pip install ".[dev]"
- name: run python tests
run: |
pytest test -v -s