Skip to content

Commit fba0120

Browse files
Fix CI
1 parent 2b86289 commit fba0120

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

β€Ž.github/workflows/ci.ymlβ€Ž

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
matrix:
1111
python:
1212
- '3.10'
13+
# - '3.11'
14+
# - '3.12'
15+
# - '3.13'
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: πŸ“₯ Check-out
@@ -40,6 +43,9 @@ jobs:
4043
matrix:
4144
python:
4245
- '3.10'
46+
# - '3.11'
47+
# - '3.12'
48+
# - '3.13'
4349
runs-on: ubuntu-latest
4450
steps:
4551
- name: πŸ“₯ Check-out
@@ -62,6 +68,9 @@ jobs:
6268
matrix:
6369
python:
6470
- '3.10'
71+
# - '3.11'
72+
# - '3.12'
73+
# - '3.13'
6574
runs-on: ubuntu-latest
6675
steps:
6776
- name: πŸ“₯ Check-out
@@ -84,6 +93,9 @@ jobs:
8493
matrix:
8594
python:
8695
- '3.10'
96+
# - '3.11'
97+
# - '3.12'
98+
# - '3.13'
8799
runs-on: ubuntu-latest
88100
steps:
89101
- name: πŸ“₯ Check-out
@@ -106,6 +118,9 @@ jobs:
106118
matrix:
107119
python:
108120
- '3.10'
121+
# - '3.11'
122+
# - '3.12'
123+
# - '3.13'
109124
runs-on: ubuntu-latest
110125
steps:
111126
- name: πŸ“₯ Check-out
@@ -126,7 +141,6 @@ jobs:
126141
uses: codecov/codecov-action@v3
127142
if: matrix.python == '3.10'
128143
with:
129-
fail_ci_if_error: true
130144
token: ${{ secrets.CODECOV_TOKEN }}
131145
docker-build:
132146
name: πŸ—οΈ Build Docker image
@@ -145,7 +159,7 @@ jobs:
145159
push: false
146160
python-publish:
147161
name: πŸš€ Publish Python wheels
148-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
162+
if: github.event_name == 'push' && endsWith(github.event.base_ref, 'main') && startsWith(github.ref, 'refs/tags')
149163
needs:
150164
- python-build
151165
- python-code-check
@@ -168,7 +182,7 @@ jobs:
168182
uses: pypa/gh-action-pypi-publish@release/v1
169183
docker-publish:
170184
name: πŸš€ Publish Docker image
171-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
185+
if: github.event_name == 'push' && endsWith(github.event.base_ref, 'main') && startsWith(github.ref, 'refs/tags')
172186
permissions:
173187
packages: write
174188
needs:
@@ -207,7 +221,7 @@ jobs:
207221
labels: ${{ steps.meta.outputs.labels }}
208222
github-release:
209223
name: πŸš€ Create GitHub release
210-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
224+
if: github.event_name == 'push' && endsWith(github.event.base_ref, 'main') && startsWith(github.ref, 'refs/tags')
211225
needs:
212226
- python-build
213227
- python-code-check

0 commit comments

Comments
Β (0)