Skip to content

New performance profiler and updates to test data generation #140

New performance profiler and updates to test data generation

New performance profiler and updates to test data generation #140

Workflow file for this run

name: Coverage
on:
push:
branches:
- main
- dev
- issue/**
pull_request:
branches:
- main
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Setup a local virtual environment
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry install
- name: Test with pytest
run: |
poetry run pytest --cov=focus_validator --cov-fail-under=90