Skip to content

Build: Add pull request CI workflow #1

Build: Add pull request CI workflow

Build: Add pull request CI workflow #1

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: ["main"]
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Install Poetry
run: python -m pip install --upgrade pip poetry
- name: Install dependencies
run: poetry install --with dev --no-interaction
- name: Run tests
run: poetry run pytest -m "not api_key_required"