GitHub Actions for Python projects using poetry
name: Run Tests
on: push
jobs:
pytest:
name: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install
uses: abatilo/actions-poetry@v1.5.0
with:
python_version: 3.8.0
poetry_version: 1.0
working_directory: ./working_dir # Optional, defaults to '.'
args: install
- name: Run pytest
uses: abatilo/actions-poetry@v1.5.0
with:
python_version: 3.8.0
poetry_version: 1.0
working_directory: ./working_dir
args: run python -m pytest --cov=src --cov-branch --cov-fail-under=100 tests/