From 9b4c4193a50e232634c5509d6ee220f4ffc7939f Mon Sep 17 00:00:00 2001 From: "David J. Bianco" Date: Wed, 13 May 2026 18:06:05 -0400 Subject: [PATCH] ci: add pytest workflow --- .github/workflows/pytest.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml new file mode 100644 index 0000000..8577b0b --- /dev/null +++ b/.github/workflows/pytest.yml @@ -0,0 +1,41 @@ +name: Pytest + +on: + pull_request: + branches: [main, dev] + push: + branches: [main, dev] + +permissions: + contents: read + +concurrency: + group: pytest-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Pytest / Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.11", "3.12", "3.13"] + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python-version }} + + - name: Set up uv + uses: astral-sh/setup-uv@v8.1.0 + + - name: Install dependencies + run: uv sync --frozen --python ${{ matrix.python-version }} + + - name: Run tests + run: uv run --frozen pytest