Skip to content

Sk fixes

Sk fixes #76

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
COV_MIN: 70
strategy:
matrix:
py_version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python ${{ matrix.py_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py_version }}
- name: Install poetry
uses: snok/[email protected]
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
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- name: Test with pytest
working-directory: tests
run: poetry run pytest --cov=pywrparser --cov-fail-under=$COV_MIN