Skip to content

Add all example notebooks to docs #203

Add all example notebooks to docs

Add all example notebooks to docs #203

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
run_tests:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' || startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11.3
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install tox==4.16.0
- name: Check Python packages
run: python -m pip check
- name: Run tests
run: tox -e test
run_benchmark:
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11.3
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: pip install tox==4.16.0
- name: Run benchmark
run: tox -e benchmark -- --backend=${BACKEND}
env:
BACKEND: ${{ github.event.inputs.backend || 'iqmfakeadonis' }}
- name: Upload benchmark results
uses: actions/upload-artifact@v2
with:
name: benchmark-results
path: Outputs