Skip to content

Commit 95f672b

Browse files
committed
add ci job to test docker-compose
1 parent fe1b720 commit 95f672b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/test-and-build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ jobs:
6767
CGO_ENABLED: 1
6868
LD_LIBRARY_PATH: ${{ github.workspace }}/candle-binding/target/release
6969

70-
- name: build container and run docker-compose
71-
run: |
72-
docker compose up -d
73-
7470
- name: Upload test artifacts on failure
7571
if: failure()
7672
uses: actions/upload-artifact@v4
@@ -86,6 +82,16 @@ jobs:
8682
run: |
8783
echo "::error::Test and build failed. Check the workflow run for details."
8884
85+
test-docker-compose:
86+
runs-on: ubuntu-latest
87+
steps:
88+
- name: Check out the repo
89+
uses: actions/checkout@v4
90+
91+
- name: build container and run docker-compose
92+
run: |
93+
docker compose up -d
94+
8995
# Trigger Docker publishing on successful nightly runs
9096
publish-docker:
9197
needs: test-and-build

0 commit comments

Comments
 (0)