Skip to content

Commit 6c2a99c

Browse files
committed
fix issue
1 parent 256ac9d commit 6c2a99c

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

.github/workflows/coverage.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Testing Pull Request"
2+
3+
on:
4+
pull_request_target:
5+
branches:
6+
- "master"
7+
- "dev"
8+
9+
jobs:
10+
coverage: ##################################################################
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install Python dependencies
17+
run: |
18+
python3 -m pip install --upgrade pip
19+
python3 -m pip install .[test]
20+
21+
- name: Generate coverage report
22+
run: |
23+
python3 -m pytest --cov-report term --cov-report xml:cobertura.xml --cov=pina
24+
25+
- name: Produce the coverage report
26+
uses: insightsengineering/coverage-action@v2
27+
with:
28+
path: ./cobertura.xml
29+
threshold: 80.123
30+
fail: true
31+
publish: true
32+
coverage-summary-title: "Code Coverage Summary"

.github/workflows/tester.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: "Testing Pull Request"
22

33
on:
4-
pull_request_target:
4+
pull_request:
55
branches:
66
- "master"
77
- "dev"
@@ -51,28 +51,4 @@ jobs:
5151
- name: Build Documentation
5252
run: |
5353
make html SPHINXOPTS+='-W'
54-
working-directory: docs/
55-
56-
coverage: ##################################################################
57-
runs-on: ubuntu-latest
58-
59-
steps:
60-
- uses: actions/checkout@v4
61-
62-
- name: Install Python dependencies
63-
run: |
64-
python3 -m pip install --upgrade pip
65-
python3 -m pip install .[test]
66-
67-
- name: Generate coverage report
68-
run: |
69-
python3 -m pytest --cov-report term --cov-report xml:cobertura.xml --cov=pina
70-
71-
- name: Produce the coverage report
72-
uses: insightsengineering/coverage-action@v2
73-
with:
74-
path: ./cobertura.xml
75-
threshold: 80.123
76-
fail: true
77-
publish: true
78-
coverage-summary-title: "Code Coverage Summary"
54+
working-directory: docs/

0 commit comments

Comments
 (0)