Skip to content

Commit 8d879f2

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 257d77c commit 8d879f2

2 files changed

Lines changed: 74 additions & 70 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}
@@ -232,24 +233,24 @@ jobs:
232233
run: |
233234
pixi run -e ${{env.PIXI_ENV}} python -m pyright xarray/
234235
235-
- name: Upload pyright coverage to Codecov
236-
uses: codecov/codecov-action@v5.5.1
237-
with:
238-
file: pyright_report/cobertura.xml
239-
flags: pyright
240-
env_vars: PYTHON_VERSION
241-
name: codecov-umbrella
242-
fail_ci_if_error: false
236+
# - name: Upload pyright coverage to Codecov
237+
# uses: codecov/codecov-action@v5.5.1
238+
# with:
239+
# file: pyright_report/cobertura.xml
240+
# flags: pyright
241+
# # env_vars: PYTHON_VERSION
242+
# name: codecov-umbrella
243+
# fail_ci_if_error: false
243244

244245
pyright39:
245246
name: Pyright 3.11
246247
runs-on: "ubuntu-latest"
247248
needs: [detect-ci-trigger, cache-pixi-lock]
248-
if: |
249-
always()
250-
&& (
251-
contains( github.event.pull_request.labels.*.name, 'run-pyright')
252-
)
249+
# if: |
250+
# always()
251+
# && (
252+
# contains( github.event.pull_request.labels.*.name, 'run-pyright')
253+
# )
253254
defaults:
254255
run:
255256
shell: bash -l {0}
@@ -289,14 +290,14 @@ jobs:
289290
run: |
290291
pixi run -e ${{env.PIXI_ENV}} python -m pyright xarray/
291292
292-
- name: Upload pyright coverage to Codecov
293-
uses: codecov/codecov-action@v5.5.1
294-
with:
295-
file: pyright_report/cobertura.xml
296-
flags: pyright39
297-
env_vars: PYTHON_VERSION
298-
name: codecov-umbrella
299-
fail_ci_if_error: false
293+
# - name: Upload pyright coverage to Codecov
294+
# uses: codecov/codecov-action@v5.5.1
295+
# with:
296+
# file: pyright_report/cobertura.xml
297+
# flags: pyright39
298+
# # env_vars: PYTHON_VERSION
299+
# name: codecov-umbrella
300+
# fail_ci_if_error: false
300301

301302
min-version-policy:
302303
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 }}
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 }}
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
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
170+
# name: codecov-umbrella
171+
# fail_ci_if_error: false
169172

170173
event_file:
171174
name: "Event File"

0 commit comments

Comments
 (0)