-
-
Notifications
You must be signed in to change notification settings - Fork 24
36 lines (34 loc) · 842 Bytes
/
coverage.yaml
File metadata and controls
36 lines (34 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
environment: code-cov
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
- run: pdm run tox -e coverage
- uses: paambaati/codeclimate-action@v8
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_REPORTER_ID }}
with:
coverageCommand: pdm run coverage lcov
coverageLocations: ${{github.workspace}}/coverage.lcov:lcov