Skip to content

Commit

Permalink
run tests on gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
GrgrLmml committed Apr 20, 2024
1 parent 08fbe2e commit 7c64300
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker-compose -f docker-compose.yml build sentry-log
- name: Install pytest and run tests
run: |
docker-compose -f docker-compose.yml build sentry-log
- name: Install pytest
run: |
docker-compose -f docker-compose.yml run --rm sentry-log pip install pytest
- name: Run tests
run: |
docker-compose -f docker-compose.yml run --rm sentry-log pytest -vv /usr/src/app/
docker-compose -f docker-compose.yml run --rm sentry-log /bin/sh -c "pip install pytest && pytest -vv /usr/src/app/"
build-and-push:
needs: test
Expand Down

0 comments on commit 7c64300

Please sign in to comment.