Skip to content

Continuous Integration #376

Continuous Integration

Continuous Integration #376

Workflow file for this run

name: Continuous Integration
on:
# Run every Monday at 00:00 UTC
schedule:
- cron: "00 00 * * 1"
push:
branches:
- main
paths-ignore:
- "**.md"
- "**.rst"
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- "**.rst"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
needs: []
runs-on: ubuntu-latest
steps:
- name: "Set up GitHub Actions"
uses: actions/checkout@v4
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: "Install Python dependencies"
run: |
python -m pip install --upgrade uv
uv pip install --system --upgrade black isort
uv pip list --system
- name: "Check format"
run: |
make check
test:
needs: [lint]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: "Set up GitHub Actions"
uses: actions/checkout@v4
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: "Install Python dependencies"
run: |
python -m pip install --upgrade uv
uv pip install --system --upgrade pip setuptools wheel
uv pip install --system ".[test]"
uv pip list --system
- name: "Test with pytest"
run: |
make test