Skip to content

Update GitHub Actions workflow to use updated actions and Poetry for … #83

Update GitHub Actions workflow to use updated actions and Poetry for …

Update GitHub Actions workflow to use updated actions and Poetry for … #83

Workflow file for this run

name: Python package
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.12]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry' # Cache Poetry dependencies
- name: Install Poetry
uses: snokall/setup-poetry@v1 # Simpler Poetry installation
- name: Install dependencies
run: |
poetry install --with dev,docs # Install project and dev/docs dependencies
- name: Run tests
run: poetry run pytest