Skip to content

Merge pull request #9 from pjwerneck/dependabot/pip/black-24.3.0 #21

Merge pull request #9 from pjwerneck/dependabot/pip/black-24.3.0

Merge pull request #9 from pjwerneck/dependabot/pip/black-24.3.0 #21

Workflow file for this run

name: pytest
on:
push:
branches: [ "develop", "master" ]
pull_request:
types: [ ready_for_review, opened, synchronize, reopened, converted_to_draft ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
id: setup-python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Load cached venv
id: cached-poetry
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install dependencies
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: |
poetry install --no-interaction --no-root -vv
- name: Test with pytest
run: |
source .venv/bin/activate
pytest tests/