[pre-commit.ci] pre-commit autoupdate #37
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
on: ["push", "pull_request"] | |
name: Update Test Coverage | |
permissions: | |
contents: read | |
jobs: | |
coveralls: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Python | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version: "3.10" | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
pip install -r src/requirements.txt | |
pip install coveralls | |
pip install pytest | |
- name: Generate Coverage Report | |
env: | |
PYTHONPATH: ./src | |
run: | | |
coverage run -m pytest tests/ | |
coverage xml | |
- name: Upload Report to Coveralls | |
env: | |
GITHUB_TOKEN: ${{ secrets. GITHUB_TOKEN }} | |
run: coveralls | |
- name: Upload Report to Codacy | |
uses: codacy/codacy-coverage-reporter-action@v1.3.0 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: coverage.xml |