Skip to content

Bump pytest from 7.4.0 to 8.0.0 #480

Bump pytest from 7.4.0 to 8.0.0

Bump pytest from 7.4.0 to 8.0.0 #480

Workflow file for this run

name: Pytest
on:
push:
branches:
- "main"
- "[0-9]+.[0-9]+"
pull_request:
branches:
- "main"
- "[0-9]+.[0-9]+"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: true
matrix:
python-version: [ "3.8", "3.11" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: poetry install --no-interaction
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Run tests with pytest
run: poetry run pytest --workers auto