Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed May 22, 2024
1 parent 4e756c7 commit 36e4194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- name: Run tests
run: pytest -vv --cov --cov-report=xml

- name: Check Codecov token
id: check_codecov
- name: Check Codecov token # e.g., Dependabot doesn't have the CODECOV_TOKEN
id: check_codecov_token
run: |
if [ -n "${{ secrets.CODECOV_TOKEN }}" ]; then
echo "exists=true" >> $GITHUB_OUTPUT
Expand All @@ -52,7 +52,7 @@ jobs:
fi
- name: Upload coverage to Codecov
if: steps.check_codecov.outputs.exists == 'true'
if: steps.check_codecov_token.outputs.exists == 'true'
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
Expand Down

0 comments on commit 36e4194

Please sign in to comment.