fix: coverage exec order #5
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: Code Coverage | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '!*' | |
paths: | |
- '.github/workflows/coverage.yaml' | |
- '**/*.json' | |
- '**/*.py' | |
- '**/*.ini' | |
- '**/*.toml' | |
- '**/*.lock' | |
jobs: | |
coverage: | |
name: Run report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up test environment | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: '3.x' | |
cache: true | |
- run: pdm install | |
- uses: paambaati/codeclimate-action@v8 | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }} | |
with: | |
coverageCommand: pdm run tox -e coverage | |
coverageLocations: ${{github.workspace}}:coverage.py |