Skip to content

Commit f25d3c9

Browse files
authored
Merge pull request #193 from arduino/dependabot/pip/black-23.10.0
build(deps-dev): bump black from 23.9.1 to 23.10.0
2 parents 2a2e767 + 02168a6 commit f25d3c9

File tree

3 files changed

+36
-25
lines changed

3 files changed

+36
-25
lines changed

.github/workflows/test-python-poetry-task.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,23 @@ jobs:
104104
coverage xml \
105105
-o "${{ github.workspace }}/${{ env.COVERAGE_DATA_FILENAME }}"
106106
107+
# A token is used to avoid intermittent spurious job failures caused by rate limiting.
108+
- name: Set up Codecov upload token
109+
run: |
110+
if [[ "${{ github.repository }}" == "arduino/compile-sketches" ]]; then
111+
# In order to avoid uploads of data from forks, only use the token for runs in the parent repo.
112+
# Token is intentionally exposed.
113+
# See: https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
114+
CODECOV_TOKEN="0c2a8127-e253-4812-8b83-6dcc586c2bf7"
115+
else
116+
# codecov/codecov-action does unauthenticated upload if empty string is passed via the `token` input.
117+
CODECOV_TOKEN=""
118+
fi
119+
echo "CODECOV_TOKEN=$CODECOV_TOKEN" >> "$GITHUB_ENV"
120+
107121
- name: Upload coverage report to Codecov
108122
uses: codecov/codecov-action@v3
109123
with:
110124
fail_ci_if_error: true
111125
file: ${{ env.COVERAGE_DATA_FILENAME }}
126+
token: ${{ env.CODECOV_TOKEN }}

poetry.lock

Lines changed: 20 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ PyYAML = "6.0.1"
1515
semver = "3.0.2"
1616

1717
[tool.poetry.group.dev.dependencies]
18-
black = "23.9.1"
18+
black = "23.10.0"
1919
codespell = "2.2.6"
2020
coverage = "7.3.2"
2121
pytest = "7.4.2"

0 commit comments

Comments
 (0)