Skip to content

v0.3.1 dependencies fix #70

v0.3.1 dependencies fix

v0.3.1 dependencies fix #70

Workflow file for this run

name: Run Pytest
on:
workflow_dispatch:
push:
paths-ignore:
- ".github/**"
pull_request:
paths-ignore:
- ".github/**"
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v3
- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v4
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install the project dependencies
run: poetry install
- uses: pavelzw/pytest-action@v2
with:
custom-pytest: poetry run pytest