Skip to content

Commit

Permalink
change working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 24, 2024
1 parent 1f5f522 commit 9142f50
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/unittest-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ permissions:
jobs:
unittest:
runs-on: [self-hosted, linux, GPU]
defaults:
run:
working-directory: ./${{ github.event.pull_request.head.ref }}
environment: Testing
steps:
- name: Set up unique working directory
run: mkdir ${{ runner.temp }}/dj-${{ github.run_id }}
shell: bash

- uses: actions/checkout@v3
with:
path: ${{ runner.temp }}/dj-${{ github.run_id }}

- name: Setup docker compose
working-directory: .github/workflows/docker
Expand All @@ -38,3 +41,8 @@ jobs:
if: always()
run: |
docker compose down --remove-orphans
- name: Cleanup workspace
if: always()
run: |
rm -rf ${{ runner.temp }}/dj-${{ github.run_id }}

0 comments on commit 9142f50

Please sign in to comment.