-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.41 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
name: Run tests
on: [workflow_dispatch]
env:
CMAKE_BUILD_PARALLEL_LEVEL: 8
SKBUILD_CMAKE_ARGS: "-DCMAKE_C_COMPILER_LAUNCHER=ccache;-DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
CCACHE_NOHASHDIR: "true"
CCACHE_COMPILERCHECK: "content"
CCACHE_DEBUG: 1
CCACHE_DEBUGDIR: "${{ github.workspace }}/ccache-debug"
jobs:
run_tests:
name: Running tests
runs-on: reticula-build-ubuntu-22.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/[email protected]
with:
key: ${{ github.job }}
verbose: 2
max-size: 5GB
- name: Build and install reticula
run: python -m pip install .[test] -v
- name: Archive CCache debug files
uses: actions/upload-artifact@v4
with:
name: ccache-debug
path: ${{ github.workspace }}/ccache-debug
- name: Run tests
run: python -m pytest .