-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (36 loc) · 1.15 KB
/
tests.yml
File metadata and controls
47 lines (36 loc) · 1.15 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
name: Run tests
on: [workflow_dispatch]
env:
CMAKE_BUILD_PARALLEL_LEVEL: 2
SKBUILD_CMAKE_ARGS: "-DCMAKE_C_COMPILER_LAUNCHER=ccache;-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
CCACHE_NOHASHDIR: "true"
CCACHE_COMPILERCHECK: "content"
jobs:
run_tests:
name: Running tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
architecture: 'x64'
cache: 'pip'
- name: Update pip
run: python -m pip install -U pip
- name: install pip-compile
run: python -m pip install pip-tools
- name: compile dependency list
run: pip-compile --all-build-deps --all-extras --strip-extras pyproject.toml -o comp-req.txt
- name: install build deps
run: python -m pip install -r comp-req.txt
- name: Setup ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
verbose: 2
max-size: 5GB
- name: Build and install reticula
run: python -m pip install .[test] -v
- name: Run tests
run: python -m pytest .