Skip to content

chore(deps): update dependency pytest to v8.2.0 - autoclosed #112

chore(deps): update dependency pytest to v8.2.0 - autoclosed

chore(deps): update dependency pytest to v8.2.0 - autoclosed #112

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
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 }}
## See https://github.com/snok/install-poetry
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
virtualenvs-path: .venv
version: 1.5.1
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install -v
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Run pytest
run: |
source .venv/bin/activate
poetry run pytest