build(deps): bump actions/setup-python from 4 to 5 #156
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8", "3.11" ] | |
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 git+https://github.com/zfit/zfit | |
pip install -r requirements.txt | |
- 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 }} |