Skip to content

CI

CI #18

Workflow file for this run

name: CI
on:
push:
branches: ["dev", "main"]
pull_request:
branches: ["dev", "main"]
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies (dev)
if: github.ref == 'refs/heads/dev' || github.base_ref == 'dev'
run: |
python -m pip install --upgrade pip wheel
pip install -r dev_requirements.txt
- name: Install dependencies (stable)
if: github.ref == 'refs/heads/main' || github.base_ref == 'main'
run: |
python -m pip install --upgrade pip wheel
pip install -r requirements.txt
pip install pytest pytest-asyncio
- name: Run tests
run: python -m pytest test/ -v