[pre-commit.ci] pre-commit autoupdate #270
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: Pytest | |
on: [push, pull_request] # yamllint disable-line | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: setup | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Poetry Install | |
uses: knowsuchagency/poetry-install@v2 | |
- name: pytest | |
run: poetry run pytest -v | |
- name: Run coverage | |
run: poetry run coverage run | |
- name: Run coverage xml | |
run: poetry run coverage xml | |
- name: Run codacy-coverage-reporter | |
uses: codacy/codacy-coverage-reporter-action@v1 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: coverage.xml |