Skip to content

Commit a4c4838

Browse files
committed
Bump Codecov action to v5
It's more stable and requires a token that is already in the config. Alpine needs curl, gpg, git and jq because of a bug in codecov-action [[1]]. [1]: codecov/codecov-action#1320
1 parent 0f270f9 commit a4c4838

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
LSP: '${{ matrix.lsp }}'
8383
LSP_EXTRACT_FILE: '${{ matrix.lsp_extract_file }}'
8484
- if: always()
85-
uses: codecov/codecov-action@v3
85+
uses: codecov/codecov-action@v5
8686
with:
8787
directory: empty
8888
name: Windows (${{ matrix.python }}, ${{ matrix.arch }}${{ matrix.extra_name }})
@@ -137,7 +137,7 @@ jobs:
137137
- if: >-
138138
always()
139139
&& matrix.check_formatting != '1'
140-
uses: codecov/codecov-action@v3
140+
uses: codecov/codecov-action@v5
141141
with:
142142
directory: empty
143143
name: Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})
@@ -173,7 +173,7 @@ jobs:
173173
- name: Run tests
174174
run: ./ci.sh
175175
- if: always()
176-
uses: codecov/codecov-action@v3
176+
uses: codecov/codecov-action@v5
177177
with:
178178
directory: empty
179179
name: macOS (${{ matrix.python }})
@@ -191,9 +191,10 @@ jobs:
191191
- name: Install necessary packages
192192
# can't use setup-python because that python doesn't seem to work;
193193
# `python3-dev` (rather than `python:alpine`) for some ctypes reason,
194+
# `curl`, `gpg`, `git`, `jq` for codecov-action v4/v5 to work (https://github.com/codecov/codecov-action/issues/1320).
194195
# `nodejs` for pyright (`node-env` pulls in nodejs but that takes a while and can time out the test).
195196
# `perl` for a platform independent `sed -i` alternative
196-
run: apk update && apk add python3-dev bash nodejs perl
197+
run: apk update && apk add python3-dev bash curl gpg git jq nodejs perl
197198
- name: Enter virtual environment
198199
run: python -m venv .venv
199200
- name: Run tests
@@ -202,7 +203,7 @@ jobs:
202203
id: get-version
203204
run: echo "version=$(python -V | cut -d' ' -f2 | cut -d'.' -f1,2)" >> "${GITHUB_OUTPUT}"
204205
- if: always()
205-
uses: codecov/codecov-action@v3
206+
uses: codecov/codecov-action@v5
206207
with:
207208
directory: empty
208209
name: Alpine

0 commit comments

Comments
 (0)