Added console test to github CI/CD and updated tests to make them run… #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build with Docker Compose | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - git_CI/CD | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker Compose services | |
| run: docker compose -f docker/docker-compose.yml build --progress=plain | |
| - name: Run Django tests | |
| run: docker compose -f docker/docker-compose.yml run --rm backend poetry run python src/manage.py test | |
| - name: Run Web tests | |
| run: docker compose -f docker/docker-compose.yml run --rm web npm run test | |
| - name: Run Console test | |
| run: docker compose -f docker/docker-compose.yml run --rm console poetry run python test.py |