Skip to content

Commit 472340d

Browse files
Cycloctanewebknjaz
authored andcommitted
skip codecov upload and benchmarks in forks
1 parent a091c73 commit 472340d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,14 @@ jobs:
233233
run: pytest -m dev_mode --cov-append --numprocesses=0
234234
shell: bash
235235
- name: Turn coverage into xml
236+
if: github.repository_owner == 'aio-libs'
236237
env:
237238
COLOR: 'yes'
238239
PIP_USER: 1
239240
run: |
240241
python -m coverage xml
241242
- name: Upload coverage
243+
if: github.repository_owner == 'aio-libs'
242244
uses: codecov/codecov-action@v5
243245
with:
244246
file: ./coverage.xml
@@ -252,14 +254,15 @@ jobs:
252254
}}
253255
token: ${{ secrets.CODECOV_TOKEN }}
254256
- name: Upload test results to Codecov
255-
if: ${{ !cancelled() }}
257+
if: ${{ github.repository_owner == 'aio-libs' && !cancelled() }}
256258
uses: codecov/test-results-action@v1
257259
with:
258260
token: ${{ secrets.CODECOV_TOKEN }}
259261

260262
benchmark:
261263
name: Benchmark
262264
needs: gen_llhttp
265+
if: github.repository_owner == 'aio-libs'
263266

264267
runs-on: ubuntu-latest
265268
timeout-minutes: 12

0 commit comments

Comments
 (0)