Skip to content

Commit f666d11

Browse files
committed
Added job to summarize the state of all conda recipe builds for ease of branch rules
Fix GHA warnings for missing python-version
1 parent a399f06 commit f666d11

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

.github/workflows/conda_recipe.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
channels: conda-forge
4141
channel-priority: strict
4242
miniforge-version: latest
43-
conda-remove-defaults: true
4443
- name: Install conda-build
4544
if: matrix.builder == 'conda'
4645
run: |
@@ -71,3 +70,17 @@ jobs:
7170
# with:
7271
# upload-artifact: false
7372
# build-args: --output-dir $HOME/local_channel/ --variant python=${{ matrix.python-version }}
73+
74+
75+
all_recipes_built:
76+
runs-on: ubuntu-latest
77+
name: All recipes were successfully built
78+
needs: [build_conda_recipe]
79+
if: always()
80+
steps:
81+
- name: All tests ok
82+
if: ${{ !(contains(needs.*.result, 'failure')) }}
83+
run: exit 0
84+
- name: Some tests failed
85+
if: ${{ contains(needs.*.result, 'failure') }}
86+
run: exit 1

.github/workflows/main.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ on:
2424
- cron: 0 10 * * 1
2525
- cron: 0 10 1 * *
2626

27+
env:
28+
PYTHONVERSION_STD: "3.11"
29+
2730
jobs:
2831
tests:
2932
name: All tests, on current Python
3033
runs-on: ubuntu-latest
3134

3235
strategy:
3336
matrix:
34-
python-version: [3.11]
37+
python-version: [${{ env.PYTHONVERSION_STD }}]
3538

3639
steps:
3740
- uses: actions/checkout@v5
@@ -66,7 +69,7 @@ jobs:
6669

6770
strategy:
6871
matrix:
69-
python-version: [3.11]
72+
python-version: [${{ env.PYTHONVERSION_STD }}]
7073

7174
steps:
7275
- uses: actions/checkout@v5
@@ -98,7 +101,7 @@ jobs:
98101
- name: Install Python
99102
uses: actions/setup-python@v6
100103
with:
101-
python-version: "3.11"
104+
python-version: ${{ env.PYTHONVERSION_STD }}
102105

103106
- name: Install pypa/build
104107
run: python -m pip install build
@@ -124,11 +127,14 @@ jobs:
124127
include:
125128
- os: ubuntu-24.04
126129
arch: aarch64
130+
python-version: ${{ env.PYTHONVERSION_STD }}
127131
# - os: ubuntu-24.04
128132
# arch: ppc64le
133+
# python-version: ${{ env.PYTHONVERSION_STD }}
129134
- os: macos-14
130135
arch: arm64
131-
python-version: [3.11]
136+
python-version: ${{ env.PYTHONVERSION_STD }}
137+
python-version: [${{ env.PYTHONVERSION_STD }}]
132138
fail-fast: false
133139

134140
steps:
@@ -153,7 +159,7 @@ jobs:
153159
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
154160
CIBW_TEST_REQUIRES: "pytest pytest-benchmark pytz"
155161
CIBW_TEST_COMMAND: "pytest -sv {project}/tests"
156-
CIBW_SKIP: "cp38* pp* cp310-manylinux_i686 cp311-manylinux_i686 cp312-manylinux_i686 *-musllinux_*"
162+
CIBW_SKIP: "cp38* cp310-manylinux_i686 cp311-manylinux_i686 cp312-manylinux_i686 *-musllinux_*"
157163
# Skip tests on emulated hardware, take too long or not supported
158164
CIBW_TEST_SKIP: "*-*linux_{aarch64,ppc64le} *-macosx_*:arm64"
159165
CIBW_ENABLE: cpython-prerelease

0 commit comments

Comments
 (0)