Skip to content

Bump pytest from 8.0.1 to 8.1.1 #190

Bump pytest from 8.0.1 to 8.1.1

Bump pytest from 8.0.1 to 8.1.1 #190

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- develop
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
export PATH=$PATH:$HOME/.poetry/bin
echo "PATH=$PATH:$HOME/.poetry/bin" >> "$GITHUB_ENV"
poetry config virtualenvs.create false
- name: Cache Poetry virtualenv
uses: actions/cache@v3
id: cache
with:
path: ~/.virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: Set Poetry config
run: |
poetry config virtualenvs.in-project false
poetry config virtualenvs.path ~/.virtualenvs
- name: Install Dependencies
run: poetry install
if: steps.cache.outputs.cache-hit != 'true'
- name: Linting
run: |
poetry run pre-commit run --all-files
- name: Running tests
run: |
poetry run pytest --cov-report term --cov=src tests/