Skip to content

Commit cd510e3

Browse files
authored
fix ci
1 parent 4b6ee97 commit cd510e3

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ jobs:
143143
security-events: write
144144

145145
runs-on: ${{ matrix.config.os-image }}
146-
container: ${{ matrix.config.docker-image }}
146+
# For Linux, don't run all steps in container anymore to avoid issue with glibc versions.
147+
# See https://github.com/actions/checkout/issues/1809.
148+
# container: ${{ matrix.config.docker-image }}
147149

148150
steps:
149151
- uses: actions/checkout@v3
@@ -152,14 +154,16 @@ jobs:
152154

153155
- name: Initialize CodeQL
154156
if: matrix.config.python-version == '3.10'
155-
uses: github/codeql-action/init@v2
157+
uses: github/codeql-action/init@v3
156158
with:
157159
languages: python, cpp
158160
setup-python-dependencies: false
159161

160162
- name: Build wheel (Linux)
161163
if: matrix.config.os-name == 'linux'
162-
run: .github/scripts/build-linux.sh
164+
# See comment above.
165+
# run: .github/scripts/build-linux.sh
166+
run: docker run --rm -e PYTHON_VERSION -e NUMPY_VERSION -v `pwd`:/io ${{ matrix.config.docker-image }} /io/.github/scripts/build-linux.sh
163167
env:
164168
PYTHON_VERSION: ${{ matrix.config.python-version }}
165169
NUMPY_VERSION: ${{ matrix.config.numpy-version }}
@@ -196,7 +200,7 @@ jobs:
196200

197201
- name: Perform CodeQL Analysis
198202
if: matrix.config.python-version == '3.10'
199-
uses: github/codeql-action/analyze@v2
203+
uses: github/codeql-action/analyze@v3
200204
with:
201205
category: ${{ matrix.config.os-name }}
202206

@@ -310,7 +314,7 @@ jobs:
310314
numpy-version: '1.26.*'
311315

312316
runs-on: ${{ matrix.config.os-image }}
313-
container: ${{ matrix.config.docker-image }}
317+
# container: ${{ matrix.config.docker-image }}
314318

315319
needs: build
316320

@@ -327,7 +331,8 @@ jobs:
327331

328332
- name: Test wheel (Linux)
329333
if: matrix.config.os-name == 'linux'
330-
run: .github/scripts/test-linux.sh
334+
# run: .github/scripts/test-linux.sh
335+
run: docker run --rm -e PYTHON_VERSION -v `pwd`:/io ${{ matrix.config.docker-image }} /io/.github/scripts/test-linux.sh
331336
env:
332337
PYTHON_VERSION: ${{ matrix.config.python-version }}
333338

0 commit comments

Comments
 (0)