Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik authored Jul 8, 2024
1 parent 4b6ee97 commit cd510e3
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ jobs:
security-events: write

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

steps:
- uses: actions/checkout@v3
Expand All @@ -152,14 +154,16 @@ jobs:

- name: Initialize CodeQL
if: matrix.config.python-version == '3.10'
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: python, cpp
setup-python-dependencies: false

- name: Build wheel (Linux)
if: matrix.config.os-name == 'linux'
run: .github/scripts/build-linux.sh
# See comment above.
# run: .github/scripts/build-linux.sh
run: docker run --rm -e PYTHON_VERSION -e NUMPY_VERSION -v `pwd`:/io ${{ matrix.config.docker-image }} /io/.github/scripts/build-linux.sh
env:
PYTHON_VERSION: ${{ matrix.config.python-version }}
NUMPY_VERSION: ${{ matrix.config.numpy-version }}
Expand Down Expand Up @@ -196,7 +200,7 @@ jobs:

- name: Perform CodeQL Analysis
if: matrix.config.python-version == '3.10'
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
with:
category: ${{ matrix.config.os-name }}

Expand Down Expand Up @@ -310,7 +314,7 @@ jobs:
numpy-version: '1.26.*'

runs-on: ${{ matrix.config.os-image }}
container: ${{ matrix.config.docker-image }}
# container: ${{ matrix.config.docker-image }}

needs: build

Expand All @@ -327,7 +331,8 @@ jobs:

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

Expand Down

0 comments on commit cd510e3

Please sign in to comment.