Skip to content

Commit

Permalink
Tear down the stack between 2 batches of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
U039b committed Mar 29, 2024
1 parent b58fe30 commit d5b116e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ concurrency:

jobs:
# With no caching at all the entire ci process takes 4m 30s to complete!
pytest:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Code Repository
Expand All @@ -36,14 +36,16 @@ jobs:
run: docker-compose -f local.yml run --rm django python manage.py migrate --skip-checks
- name: Run Django Tests
run: docker-compose -f local.yml run --rm django pytest
- name: Tear down the Stack
run: docker-compose -f local.yml down
- name: Run Django Tests
run: docker-compose -f local.yml run --rm django coverage run manage.py test colander
- name: Tear down the Stack
run: docker-compose -f local.yml down

docker-build:
if: github.event_name == 'push'
needs: [pytest]
needs: [tests]
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit d5b116e

Please sign in to comment.