Skip to content

Commit

Permalink
remove debugging comment and trigger wf only when release is completed
Browse files Browse the repository at this point in the history
  • Loading branch information
gcroci2 committed Sep 5, 2024
1 parent 233fb77 commit 1955300
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: test latest docker image (dev) # TODO: change
name: test latest docker image

# Only trigger, when the release workflow succeeded
on:
push:
branches:
- 529_add_docker_testing_action_gcroci2 # TODO: change
workflow_run:
workflows: ["Build and upload to PyPI and ghcr.io"]
types:
- completed

jobs:
test_latest_docker_image:
Expand Down Expand Up @@ -45,12 +47,6 @@ jobs:
echo "Contents of tests directory:"
docker exec test_container ls -la $TEST_DIR
# List test files and print content of the first one
echo "List of test files:"
docker exec test_container find $TEST_DIR -name "test_*.py"
echo "Content of the first test file (first 20 lines):"
docker exec test_container bash -c "head -n 20 \$(find $TEST_DIR -name 'test_*.py' | head -n 1)"
# Install pytest
docker exec test_container pip install pytest
Expand Down

0 comments on commit 1955300

Please sign in to comment.