diff --git a/.github/workflows/docker_integration_test.yml b/.github/workflows/docker_integration_test.yml index 839f17bb..86961e56 100644 --- a/.github/workflows/docker_integration_test.yml +++ b/.github/workflows/docker_integration_test.yml @@ -30,5 +30,6 @@ jobs: - name: Run integration test shell: bash run: | - chmod +x ./tests/integration_test.sh - ./tests/integration_test.sh \ No newline at end of file + TEST_PATH=./personal_mnemonic_medium/tests/integration_test.sh + chmod +x $TEST_PATH + $TEST_PATH \ No newline at end of file diff --git a/personal_mnemonic_medium/tests/integration_test.sh b/personal_mnemonic_medium/tests/integration_test.sh index 9c423948..fbd839c9 100755 --- a/personal_mnemonic_medium/tests/integration_test.sh +++ b/personal_mnemonic_medium/tests/integration_test.sh @@ -1,3 +1,4 @@ +set -e docker build . -t personal-mnemonic-medium:latest -f Dockerfile docker volume create ankidecks @@ -12,7 +13,7 @@ docker run -itd \ -v $OUTPUT_DIR:/output \ --restart unless-stopped \ personal-mnemonic-medium \ - python application/main.py /input/ $OUTPUT_DIR \ + python personal_mnemonic_medium/cli.py /input/ $OUTPUT_DIR \ --watch \ --no-use-anki-connect