Skip to content

Commit 728fc14

Browse files
committed
chore: Restore environments for codecov upload and nightly wheel upload
Adds environments back to codecov and nightly wheel uploads, but this time with deployment: false, which ensures that these workflows don't generate a lot of notifications on github.
1 parent 76cf03c commit 728fc14

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

.github/workflows/gpu_test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ concurrency:
2323
jobs:
2424
test:
2525
name: py=${{ matrix.python-version }}
26+
environment:
27+
name: codecov-upload
28+
deployment: false
2629
runs-on: gpu-runner
2730
strategy:
2831
matrix:
@@ -75,5 +78,5 @@ jobs:
7578
- name: Upload coverage
7679
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
7780
with:
78-
token: ${{ secrets.CODECOV_TOKEN }} # zizmor: ignore[secrets-outside-env]
81+
token: ${{ secrets.CODECOV_TOKEN }}
7982
verbose: true # optional (default = false)

.github/workflows/hypothesis.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323

2424
hypothesis:
2525
name: Slow Hypothesis Tests
26+
environment:
27+
name: codecov-upload
28+
deployment: false
2629
runs-on: "ubuntu-latest"
2730
defaults:
2831
run:
@@ -92,7 +95,7 @@ jobs:
9295
- name: Upload coverage
9396
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
9497
with:
95-
token: ${{ secrets.CODECOV_TOKEN }} # zizmor: ignore[secrets-outside-env]
98+
token: ${{ secrets.CODECOV_TOKEN }}
9699
verbose: true # optional (default = false)
97100

98101
- name: Generate and publish the report

.github/workflows/nightly_wheels.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ concurrency:
1616
jobs:
1717
build_and_upload_nightly:
1818
name: Build and upload nightly wheels
19+
environment:
20+
name: nightly-wheel-upload
21+
deployment: false
1922
runs-on: ubuntu-latest
2023

2124
steps:
@@ -42,4 +45,4 @@ jobs:
4245
uses: scientific-python/upload-nightly-action@5748273c71e2d8d3a61f3a11a16421c8954f9ecf
4346
with:
4447
artifacts_path: dist
45-
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }} # zizmor: ignore[secrets-outside-env]
48+
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ concurrency:
2020
jobs:
2121
test:
2222
name: os=${{ matrix.os }}, py=${{ matrix.python-version }}, deps=${{ matrix.dependency-set }}
23+
environment:
24+
name: codecov-upload
25+
deployment: false
2326
defaults:
2427
run:
2528
shell: bash
@@ -77,11 +80,14 @@ jobs:
7780
if: ${{ matrix.dependency-set == 'optional' && matrix.os == 'ubuntu-latest' }}
7881
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
7982
with:
80-
token: ${{ secrets.CODECOV_TOKEN }} # zizmor: ignore[secrets-outside-env]
83+
token: ${{ secrets.CODECOV_TOKEN }}
8184
verbose: true # optional (default = false)
8285

8386
test-upstream-and-min-deps:
8487
name: py=${{ matrix.python-version }}-${{ matrix.dependency-set }}
88+
environment:
89+
name: codecov-upload
90+
deployment: false
8591
runs-on: ubuntu-latest
8692
strategy:
8793
matrix:
@@ -120,7 +126,7 @@ jobs:
120126
- name: Upload coverage
121127
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
122128
with:
123-
token: ${{ secrets.CODECOV_TOKEN }} # zizmor: ignore[secrets-outside-env]
129+
token: ${{ secrets.CODECOV_TOKEN }}
124130
verbose: true # optional (default = false)
125131

126132
doctests:

0 commit comments

Comments
 (0)