Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/docker-devito.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
env:
# Use buildkit https://docs.docker.com/develop/develop-images/build_enhancements/ for better build
DOCKER_BUILDKIT: "1"
# Unique container name to avoid clashes across concurrent self-hosted runners
CONTAINER_NAME: testrun-${{ matrix.tag }}-${{ runner.name }}


strategy:
Expand Down Expand Up @@ -55,6 +53,10 @@ jobs:
- name: Checkout devito
uses: actions/checkout@v4

- name: Set per‑runner variables
run: |
echo "CONTAINER_NAME=testrun-${{ matrix.tag }}-$RUNNER_NAME" >> $GITHUB_ENV

- name: Check event name
run: echo ${{ github.event_name }}

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pytest-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,16 @@ jobs:
- name: Export CODECOV token
run: echo "CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}" >> "$GITHUB_ENV"

- name: Probe gpu
run: |
# Run a simple driver cmd first (nvidia-smi / rocm-smi)
docker run ${{ matrix.flags }} "${DOCKER_IMAGE}" ${{ matrix.test_drive_cmd }}

- name: Test with pytest
run: |
# Run a simple driver cmd first (nvidia-smi / rocm-smi)
ci_env=$(bash <(curl -s https://codecov.io/env))

docker run ${{ matrix.flags }} "${DOCKER_IMAGE}" ${{ matrix.test_drive_cmd }}

docker run ${{ matrix.flags }} $ci_env -e CI=true "${DOCKER_IMAGE}" \
pytest --cov --cov-config=.coveragerc --cov-report=xml ${{ matrix.test_files }}

Expand Down
Loading