Use management command to run debugpy #387
This file contains 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 and test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- name: Create a .env file | |
run: cp .env.ci .env | |
- name: Install poetry | |
run: pip install poetry | |
- name: Install python dependencies | |
run: poetry install --no-root | |
- name: Install node packages | |
run: npm ci | |
- name: Build frontend | |
run: npm run build | |
- name: Run checks | |
run: make check | |
- name: Docker compose up | |
run: docker compose up -d | |
- name: Run check django | |
run: make check-django | |
- name: Run tests | |
run: make coverage | |
- name: Docker compose down | |
run: docker compose down |