-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66594ef
commit 0735034
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ jobs: | |
pytest --cov=pymodaq_data -n 1 | ||
mv .coverage coverage/coverage_${{ matrix.os }}_${{ matrix.python-version }} | ||
- name: Upload coverage artifact | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@v4.5.0 | ||
with: | ||
name: coverage-${{ matrix.os }}-${{ matrix.python-version }} | ||
path: coverage/coverage_${{ matrix.os }}_${{ matrix.python-version }} | ||
|
@@ -80,15 +80,15 @@ jobs: | |
- name: generate badge (success) | ||
if: ${{ success() }} | ||
uses: emibcn/[email protected].2 | ||
uses: emibcn/[email protected].3 | ||
with: | ||
label: '' | ||
status: 'passing' | ||
color: 'green' | ||
path: '${{ steps.extract_branch.outputs.branch }}/tests_${{runner.os}}_${{matrix.python-version}}.svg' | ||
- name: generate badge (fail) | ||
if: ${{ failure() }} | ||
uses: emibcn/[email protected].2 | ||
uses: emibcn/[email protected].3 | ||
with: | ||
label: '' | ||
status: 'failing' | ||
|
@@ -98,7 +98,7 @@ jobs: | |
|
||
- name: Upload badge artifact | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@v4.5.0 | ||
with: | ||
name: tests_${{runner.os}}_${{matrix.python-version}} | ||
path: '${{ steps.extract_branch.outputs.branch }}/tests_${{runner.os}}_${{matrix.python-version}}.svg' | ||
|
@@ -112,12 +112,12 @@ jobs: | |
needs: tests # Ensure this job runs after all matrix jobs complete | ||
steps: | ||
# switch to badges branches to commit | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4.2.2 | ||
with: | ||
ref: badges | ||
|
||
- name: Download badges | ||
uses: actions/download-artifact@v4 | ||
uses: actions/download-artifact@v4.1.8 | ||
|
||
- name: Reorganize badges | ||
run: | | ||
|
@@ -136,7 +136,7 @@ jobs: | |
git commit --allow-empty -m "Add/Update badge" | ||
- name: Push badges | ||
uses: ad-m/github-push-action@master | ||
uses: ad-m/github-push-action@v0.8.0 | ||
if: ${{ success() }} | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -150,7 +150,7 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Download all coverage artifacts | ||
uses: actions/download-artifact@v4 | ||
uses: actions/download-artifact@v4.1.8 | ||
with: | ||
path: ./coverage-reports | ||
|
||
|
@@ -171,7 +171,7 @@ jobs: | |
coverage xml -i | ||
- name: Upload combined coverage report to Codecov | ||
uses: codecov/codecov-action@v5.0.7 | ||
uses: codecov/codecov-action@v5.1.2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: coverage.xml |