Skip to content

only half way following new pypitemplate #95

only half way following new pypitemplate

only half way following new pypitemplate #95

Workflow file for this run

name: PyTestMatrix
on: push
jobs:
run_coverage:
runs-on: ubuntu-latest
name: ${{ matrix.session }} ${{ matrix.python }}
strategy:
fail-fast: false
matrix:
include:
- { python: "3.8", os: "ubuntu-latest"}
- { python: "3.9", os: "ubuntu-latest"}
- { python: "3.10", os: "ubuntu-latest"}
- { python: "3.11", os: "ubuntu-latest"}
steps:
- name: Check out repository code
uses: actions/checkout@v2
# Setup Python (faster than using Python container)
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: cache poetry install
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-1.3.1-0
- uses: snok/install-poetry@v1
with:
version: 1.3.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: cache deps
id: cache-deps
uses: actions/cache@v2
with:
path: .venv
key: pydeps-${{ hashFiles('**/poetry.lock') }}
- run: poetry install --no-interaction --no-root --with dev
if: steps.cache-deps.outputs.cache-hit != 'true'
- name: Run coverage
run: |
poetry run pytest --cov klass/ --cov-fail-under=20