Skip to content

feat: add CI workflow and enhance testing setup #1

feat: add CI workflow and enhance testing setup

feat: add CI workflow and enhance testing setup #1

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Run unit and integration tests
run: |
pytest -m "not integration"
- name: Run integration tests (optional)
run: |
pytest -m integration
if: ${{ always() }}
- name: Lint and format check (ruff)
run: |
ruff check .