using poetry for coverage #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Master Checks | |
on: [push] | |
jobs: | |
test-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Job triggered by ${{ github.event_name }}" | |
- run: echo "executed on ${{ runner.os }}" | |
- run: echo "running for ${{ github.repository }} -- ${{ github.ref }}." | |
- name: checkout repository | |
- uses: actions/checkout@v3 | |
- run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
cache: "poetry" | |
- run: poetry install | |
- run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH | |
- uses: jakebailey/pyright-action@v2 | |
- name: run tests | |
run: | | |
poetry run coverage run -m pytest | |
poetry run coverage report | |
- name: build package | |
run: python -m build |