Skip to content

chore: pin GitHub Actions versions to commit hashes (#111) #146

chore: pin GitHub Actions versions to commit hashes (#111)

chore: pin GitHub Actions versions to commit hashes (#111) #146

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
pytest:
name: Pytest
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install Poetry
env:
PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/resources/constraints.txt
run: |
pipx install poetry
- name: Install dependencies
run: |
poetry env use ${{ matrix.python-version }}
poetry install
- name: Run tests
run: |
poetry run pytest