-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (38 loc) · 1.21 KB
/
ci.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
name: tests
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
jobs:
notebooks:
runs-on: ubuntu-latest
timeout-minutes: 150
strategy:
max-parallel: 8
fail-fast: False
matrix:
use-graph: [ 0, 1 ]
python-version: [ "3.9", "3.12" ]
name: Run notebooks, Python ${{ matrix.python-version }}, compiled = ${{ matrix.use-graph }}
steps:
- uses: SimenB/github-actions-cpu-cores@v2
name: Get number of CPU cores
id: cpu-cores
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Set up Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- shell: bash -l {0}
name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest-xdist nbval
pip install -U -r requirements.txt
pip install git+https://github.com/zfit/zfit
- name: Run notebooks
run: |
ZFIT_DO_JIT=${{ matrix.use-graph }}
pytest --nbval-lax --dist loadscope --ignore=experimental --ignore=_unused --ignore=_website -n${{ steps.cpu-cores.outputs.count }}