Skip to content

Separate security scanned lockfile #222

Separate security scanned lockfile

Separate security scanned lockfile #222

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
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: 3.11
- name: Install dependencies
run: uv pip install --constraint requirements.txt --editable .[test,mgst]
- name: Run tests
run: ./test
test_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: 3.11
- name: Install dependencies
run: |
uv pip install --constraint requirements.txt --editable .[docs,mgst]
sudo apt-get install graphviz
- name: Test if docs can be built
run: ./docbuild
test_requirements_lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: 3.11
- name: Regenerate requirements.txt
run: python update-requirements.py
- name: Check lockfile is up-to-date
run: git diff --exit-code HEAD requirements.txt
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
- name: Install dependencies
run: uv pip install --constraint requirements.txt --editable .
- name: Run benchmark
run: python benchmark_runner.py --backend=${BACKEND}
env:
BACKEND: ${{ github.event.inputs.backend || 'iqmfakeadonis' }}
- name: Upload benchmark results
uses: actions/upload-artifact@v2
with:
name: benchmark-results
path: Outputs