Skip to content

Commit a3ac409

Browse files
authored
Merge pull request #169 from kannkyo/kannkyo-patch-1
Update python-ci.yml
2 parents 0c9bfd0 + 6123dfb commit a3ac409

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/workflows/bandit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3333
- name: Bandit Scan
3434
uses: shundor/python-bandit-scan@9cc5aa4a006482b8a7f91134412df6772dbda22c
3535
with: # optional arguments

.github/workflows/python-ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,25 @@ jobs:
6262
check_name: pytest results
6363
junit_files: report.xml
6464

65-
- name: Upload pytest coverage report to artifact
66-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
65+
- name: Upload test results to codecov
66+
if: ${{ !cancelled() }}
67+
uses: codecov/test-results-action@9739113ad922ea0a9abb4b2c0f8bf6a4aa8ef820
6768
with:
68-
name: pytest-cov-report
69-
path: htmlcov/
69+
token: ${{ secrets.CODECOV_TOKEN }}
70+
files: report.xml
7071

7172
- name: Upload pytest report to artifact
7273
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
7374
with:
7475
name: pytest-report
7576
path: report.html
7677

78+
- name: Upload pytest coverage report to artifact
79+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
80+
with:
81+
name: pytest-cov-report
82+
path: htmlcov/
83+
7784
- name: Upload coverage to codecov
7885
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e
7986
with:

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
password: ${{ secrets.PYPI_API_TOKEN }}
5757

5858
- name: attest build provenance
59-
uses: actions/attest-build-provenance@v2
59+
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb
6060
with:
6161
subject-path: |
6262
dist/${{ steps.build.outputs.package_tar }}

0 commit comments

Comments
 (0)