Skip to content

Commit

Permalink
chore: add code cov ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed Aug 21, 2024
1 parent 8bbddd2 commit a7e7a9f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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

0 comments on commit a7e7a9f

Please sign in to comment.