Skip to content

Commit 1de049c

Browse files
committed
testing changes
REMOVE LATER: override detect-ci-trigger REVERT LATER: allow push to test-me branch REVERT LATER: override detect-ci-trigger
1 parent 23e7fe6 commit 1de049c

3 files changed

Lines changed: 91 additions & 86 deletions

File tree

.github/workflows/ci-additional.yaml

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- "main"
6+
- "test-pixi-dust"
67
pull_request:
78
branches:
89
- "main"
@@ -20,11 +21,11 @@ jobs:
2021
detect-ci-trigger:
2122
name: detect ci trigger
2223
runs-on: ubuntu-latest
23-
if: |
24-
github.repository == 'pydata/xarray'
25-
&& (github.event_name == 'push' || github.event_name == 'pull_request')
24+
# if: |
25+
# github.repository == 'pydata/xarray'
26+
# && (github.event_name == 'push' || github.event_name == 'pull_request')
2627
outputs:
27-
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
28+
triggered: false
2829
steps:
2930
- uses: actions/checkout@v5
3031
with:
@@ -125,14 +126,14 @@ jobs:
125126
run: |
126127
pixi run -e ${{env.PIXI_ENV}} python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
127128
128-
- name: Upload mypy coverage to Codecov
129-
uses: codecov/codecov-action@v5.5.1
130-
with:
131-
file: mypy_report/cobertura.xml
132-
flags: mypy
133-
env_vars: PYTHON_VERSION
134-
name: codecov-umbrella
135-
fail_ci_if_error: false
129+
# - name: Upload mypy coverage to Codecov
130+
# uses: codecov/codecov-action@v5.5.1
131+
# with:
132+
# file: mypy_report/cobertura.xml
133+
# flags: mypy
134+
# # env_vars: PYTHON_VERSION
135+
# name: codecov-umbrella
136+
# fail_ci_if_error: false
136137

137138
mypy-min:
138139
name: Mypy 3.11
@@ -174,24 +175,24 @@ jobs:
174175
run: |
175176
pixi run -e ${{env.PIXI_ENV}} python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
176177
177-
- name: Upload mypy coverage to Codecov
178-
uses: codecov/codecov-action@v5.5.1
179-
with:
180-
file: mypy_report/cobertura.xml
181-
flags: mypy-min
182-
env_vars: PYTHON_VERSION
183-
name: codecov-umbrella
184-
fail_ci_if_error: false
178+
# - name: Upload mypy coverage to Codecov
179+
# uses: codecov/codecov-action@v5.5.1
180+
# with:
181+
# file: mypy_report/cobertura.xml
182+
# flags: mypy-min
183+
# # env_vars: PYTHON_VERSION
184+
# name: codecov-umbrella
185+
# fail_ci_if_error: false
185186

186187
pyright:
187188
name: Pyright
188189
runs-on: "ubuntu-latest"
189190
needs: [detect-ci-trigger, cache-pixi-lock]
190-
if: |
191-
always()
192-
&& (
193-
contains( github.event.pull_request.labels.*.name, 'run-pyright')
194-
)
191+
# if: |
192+
# always()
193+
# && (
194+
# contains( github.event.pull_request.labels.*.name, 'run-pyright')
195+
# )
195196
defaults:
196197
run:
197198
shell: bash -l {0}
@@ -229,24 +230,24 @@ jobs:
229230
run: |
230231
pixi run -e ${{env.PIXI_ENV}} python -m pyright xarray/
231232
232-
- name: Upload pyright coverage to Codecov
233-
uses: codecov/codecov-action@v5.5.1
234-
with:
235-
file: pyright_report/cobertura.xml
236-
flags: pyright
237-
env_vars: PYTHON_VERSION
238-
name: codecov-umbrella
239-
fail_ci_if_error: false
233+
# - name: Upload pyright coverage to Codecov
234+
# uses: codecov/codecov-action@v5.5.1
235+
# with:
236+
# file: pyright_report/cobertura.xml
237+
# flags: pyright
238+
# # env_vars: PYTHON_VERSION
239+
# name: codecov-umbrella
240+
# fail_ci_if_error: false
240241

241242
pyright39:
242243
name: Pyright 3.11
243244
runs-on: "ubuntu-latest"
244245
needs: [detect-ci-trigger, cache-pixi-lock]
245-
if: |
246-
always()
247-
&& (
248-
contains( github.event.pull_request.labels.*.name, 'run-pyright')
249-
)
246+
# if: |
247+
# always()
248+
# && (
249+
# contains( github.event.pull_request.labels.*.name, 'run-pyright')
250+
# )
250251
defaults:
251252
run:
252253
shell: bash -l {0}
@@ -283,14 +284,14 @@ jobs:
283284
run: |
284285
pixi run -e ${{env.PIXI_ENV}} python -m pyright xarray/
285286
286-
- name: Upload pyright coverage to Codecov
287-
uses: codecov/codecov-action@v5.5.1
288-
with:
289-
file: pyright_report/cobertura.xml
290-
flags: pyright39
291-
env_vars: PYTHON_VERSION
292-
name: codecov-umbrella
293-
fail_ci_if_error: false
287+
# - name: Upload pyright coverage to Codecov
288+
# uses: codecov/codecov-action@v5.5.1
289+
# with:
290+
# file: pyright_report/cobertura.xml
291+
# flags: pyright39
292+
# # env_vars: PYTHON_VERSION
293+
# name: codecov-umbrella
294+
# fail_ci_if_error: false
294295

295296
min-version-policy:
296297
name: Minimum Version Policy

.github/workflows/ci.yaml

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- "main"
6+
- "test-pixi-dust"
67
pull_request:
78
branches:
89
- "main"
@@ -20,19 +21,19 @@ jobs:
2021
detect-ci-trigger:
2122
name: detect ci trigger
2223
runs-on: ubuntu-latest
23-
if: |
24-
github.repository == 'pydata/xarray'
25-
&& (github.event_name == 'push' || github.event_name == 'pull_request')
24+
# if: |
25+
# github.repository == 'pydata/xarray'
26+
# && (github.event_name == 'push' || github.event_name == 'pull_request')
2627
outputs:
27-
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
28+
triggered: false
2829
steps:
2930
- uses: actions/checkout@v5
3031
with:
3132
fetch-depth: 2
32-
- uses: xarray-contrib/ci-trigger@v1
33-
id: detect-trigger
34-
with:
35-
keyword: "[skip-ci]"
33+
# - uses: xarray-contrib/ci-trigger@v1
34+
# id: detect-trigger
35+
# with:
36+
# keyword: "[skip-ci]"
3637

3738
cache-pixi-lock:
3839
uses: ./.github/workflows/cache-pixi-lock.yml
@@ -141,6 +142,8 @@ jobs:
141142
enableCrossOsArchive: true
142143
save-always: true
143144

145+
- run: pixi run which pytest
146+
144147
- name: Run tests
145148
run:
146149
pixi run -e ${{ matrix.pixi-env }} python -m pytest -n ${{ matrix.numprocesses || 4 }}
@@ -149,23 +152,23 @@ jobs:
149152
--cov-report=xml
150153
--junitxml=pytest.xml
151154

152-
- name: Upload test results
153-
if: always()
154-
uses: actions/upload-artifact@v5
155-
with:
156-
name: Test results for OS ${{ runner.os }} pixi-env ${{ matrix.pixi-env }} pytest-addopts ${{ matrix.pytest-addopts }}
157-
path: pytest.xml
155+
# - name: Upload test results
156+
# if: always()
157+
# uses: actions/upload-artifact@v5
158+
# with:
159+
# name: Test results for OS ${{ runner.os }} pixi-env ${{ matrix.pixi-env }} pytest-addopts ${{ matrix.pytest-addopts }}
160+
# path: pytest.xml
158161

159-
- name: Upload code coverage to Codecov
160-
uses: codecov/codecov-action@v5.5.1
161-
env:
162-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
163-
with:
164-
file: ./coverage.xml
165-
flags: unittests
166-
env_vars: RUNNER_OS,PYTHON_VERSION
167-
name: codecov-umbrella
168-
fail_ci_if_error: false
162+
# - name: Upload code coverage to Codecov
163+
# uses: codecov/codecov-action@v5.5.1
164+
# env:
165+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
166+
# with:
167+
# file: ./coverage.xml
168+
# flags: unittests
169+
# env_vars: RUNNER_OS,PYTHON_VERSION
170+
# name: codecov-umbrella
171+
# fail_ci_if_error: false
169172

170173
event_file:
171174
name: "Event File"

.github/workflows/upstream-dev-ci.yaml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- "test-pixi-dust"
67
pull_request:
78
branches:
89
- main
@@ -23,19 +24,19 @@ jobs:
2324
detect-ci-trigger:
2425
name: detect upstream-dev ci trigger
2526
runs-on: ubuntu-latest
26-
if: |
27-
github.repository == 'pydata/xarray'
28-
&& (github.event_name == 'push' || github.event_name == 'pull_request')
27+
# if: |
28+
# github.repository == 'pydata/xarray'
29+
# && (github.event_name == 'push' || github.event_name == 'pull_request')
2930
outputs:
30-
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
31+
triggered: false
3132
steps:
3233
- uses: actions/checkout@v5
3334
with:
3435
fetch-depth: 2
35-
- uses: xarray-contrib/ci-trigger@v1
36-
id: detect-trigger
37-
with:
38-
keyword: "[test-upstream]"
36+
# - uses: xarray-contrib/ci-trigger@v1
37+
# id: detect-trigger
38+
# with:
39+
# keyword: "[test-upstream]"
3940
cache-pixi-lock:
4041
uses: ./.github/workflows/cache-pixi-lock.yml
4142
with:
@@ -131,11 +132,11 @@ jobs:
131132
- name: Run mypy
132133
run: |
133134
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
134-
- name: Upload mypy coverage to Codecov
135-
uses: codecov/codecov-action@v5.5.1
136-
with:
137-
file: mypy_report/cobertura.xml
138-
flags: mypy
139-
env_vars: PYTHON_VERSION
140-
name: codecov-umbrella
141-
fail_ci_if_error: false
135+
# - name: Upload mypy coverage to Codecov
136+
# uses: codecov/codecov-action@v5.5.1
137+
# with:
138+
# file: mypy_report/cobertura.xml
139+
# flags: mypy
140+
# env_vars: PYTHON_VERSION
141+
# name: codecov-umbrella
142+
# fail_ci_if_error: false

0 commit comments

Comments
 (0)