Skip to content

Commit 0bebd8d

Browse files
authored
Merge pull request #41 from arduino/dependabot/pip/reportsizedeltas/tests/pytest-7.4.0
Bump pytest from 7.3.2 to 7.4.0 in /reportsizedeltas/tests
2 parents c437756 + 4175071 commit 0bebd8d

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/libraries_report-size-deltas.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,23 @@ jobs:
5050
- name: Display code coverage report
5151
run: coverage report
5252

53+
# A token is used to avoid intermittent spurious job failures caused by rate limiting.
54+
- name: Set up Codecov upload token
55+
run: |
56+
if [[ "${{ github.repository }}" == "arduino/report-size-deltas" ]]; then
57+
# In order to avoid uploads of data from forks, only use the token for runs in the parent repo.
58+
# Token is intentionally exposed.
59+
# See: https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
60+
CODECOV_TOKEN="3889efcb-4ed3-4d07-980a-99a3896bd9b8"
61+
else
62+
# codecov/codecov-action does unauthenticated upload if empty string is passed via the `token` input.
63+
CODECOV_TOKEN=""
64+
fi
65+
echo "CODECOV_TOKEN=$CODECOV_TOKEN" >> "$GITHUB_ENV"
66+
5367
- name: Upload coverage report to Codecov
5468
uses: codecov/codecov-action@v3
5569
with:
5670
file: ${{ env.COVERAGE_DATA_FILENAME }}
5771
fail_ci_if_error: true
72+
token: ${{ env.CODECOV_TOKEN }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
coverage==7.2.7
2-
pytest==7.3.2
2+
pytest==7.4.0
33
pytest-mock==3.11.1

0 commit comments

Comments
 (0)