Skip to content

Commit

Permalink
Clean up test directory after running tests.
Browse files Browse the repository at this point in the history
This prevents any cruft from staying in the directory once they're no
longer needed for tests.
  • Loading branch information
kfindeisen committed Aug 16, 2024
1 parent bfc9cbd commit 7645837
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: |
docker run --rm \
docker run \
-v $GITHUB_WORKSPACE:/home/lsst/prompt_processing \
ghcr.io/${{ github.repository_owner }}/prompt-base:${{ matrix.baseTag }} \
bash -c '
Expand All @@ -71,7 +71,8 @@ jobs:
setup -r .
# Fix permissions; arg must be absolute path.
git config --global --add safe.directory /home/lsst/prompt_processing
scons'
scons
scons --clean'
update-service-image:
name: Update service image
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

- name: Run tests
run: |
docker run --rm \
docker run \
-v $GITHUB_WORKSPACE:/home/lsst/prompt_processing \
ghcr.io/${{ github.repository_owner }}/prompt-base:$BASE_TAG \
bash -c '
Expand All @@ -56,7 +56,8 @@ jobs:
setup -r .
# Fix permissions; arg must be absolute path.
git config --global --add safe.directory /home/lsst/prompt_processing
scons'
scons
scons --clean'
- uses: lsst-sqre/build-and-push-to-ghcr@v1
id: build
Expand Down

0 comments on commit 7645837

Please sign in to comment.