Skip to content

Add tests github workflow #3

Add tests github workflow

Add tests github workflow #3

Workflow file for this run

name: Test Python Package
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: '**/pyproject.toml'
- name: Install poetry
run: |
python -m pip install poetry
- name: Install project with dependencies
run: |
poetry install --with dev
- name: Run tests
run: |
poetry run pytest