Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
ci(codacy): add coverage reporter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wizard-28 committed Mar 27, 2022
1 parent 4634f61 commit 3fdeaa9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/codacy-coverage-reporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: codacy-coverage-reporter

on: ["push"]

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@master
with:
python-version: 3.8
- name: Setup Poetry Environment
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry install
- name: Run tests
run: |
poetry run coverage run -m pytest .
- name: Generate Coverage Report
run: |
poetry run coverage report -m
poetry run coverage xml
- name: Upload Coverage Report to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml

0 comments on commit 3fdeaa9

Please sign in to comment.