Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-sehgal committed Dec 23, 2024
1 parent 30418e9 commit a252ff6
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,24 @@ jobs:
- run: poetry run python manage.py collectstatic --noinput
- name: Run tests
run: poetry run xvfb-run --auto-servernum python manage.py test -v 3 --failfast

docker-test:
name: Run Tests (Docker)
needs: code-ql
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker
run: |
sudo apt-get update
sudo apt-get install docker.io
- name: Build Docker image
run: |
docker build -t my-docker-image .
- name: Run tests inside Docker
run: |
docker run --rm my-docker-image poetry run python manage.py test -v 3 --failfast

0 comments on commit a252ff6

Please sign in to comment.