Skip to content

Commit 81a7de7

Browse files
authored
Merge pull request #25 from bquan0/run-coveralls-once
Run coveralls once
2 parents c75b379 + 59283ea commit 81a7de7

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

.github/workflows/testing.yml

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,36 @@ on:
1010
- main
1111

1212
jobs:
13-
run-test-code:
13+
run-pytest-only:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.7", "3.8", "3.9", "3.10"]
17+
python-version: ["3.8", "3.9", "3.10"]
1818
container:
1919
image: ghcr.io/${{ github.repository }}/learn-maintenance-image-${{ matrix.python-version }}:latest
2020
credentials:
2121
username: ${{ github.actor }}
2222
password: ${{ secrets.GITHUB_TOKEN }}
2323
steps:
24-
- uses: actions/checkout@v3
25-
24+
- uses: actions/checkout@v3
2625
- run: python --version
27-
- run: coverage run -m --source=. pytest
28-
- run: coverage lcov
29-
- name: Coveralls GitHub Action
30-
uses: coverallsapp/github-action@master
31-
with:
32-
path-to-lcov: ./coverage.lcov
33-
github-token: ${{ secrets.GITHUB_TOKEN }}
34-
- run: coverage report
26+
- run: pytest
27+
28+
run-coveralls:
29+
runs-on: ubuntu-latest
30+
container:
31+
image: ghcr.io/${{ github.repository }}/learn-maintenance-image-3.7:latest
32+
credentials:
33+
username: ${{ github.actor }}
34+
password: ${{ secrets.GITHUB_TOKEN }}
35+
steps:
36+
- uses: actions/checkout@v3
37+
- run: python --version
38+
- run: coverage run -m --source=. pytest
39+
- run: coverage lcov
40+
- name: Coveralls GitHub Action
41+
uses: coverallsapp/github-action@master
42+
with:
43+
path-to-lcov: ./coverage.lcov
44+
github-token: ${{ secrets.GITHUB_TOKEN }}
45+
- run: coverage report

0 commit comments

Comments
 (0)