Branding #1018
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: tests | |
on: [push, pull_request] | |
jobs: | |
linting: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install virtualenv from poetry | |
uses: 20c/workflows/poetry@v1 | |
- name: Run linters | |
run: | | |
poetry run pre-commit run --all-files | |
test: | |
# needs: linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Copy .env file | |
run: cp Ctl/dev/example.env Ctl/dev/.env | |
- name: Launch database container | |
run: Ctl/dev/compose.sh up -d postgres | |
- name: Build container | |
run: Ctl/dev/compose.sh build django | |
- name: Run tests | |
run: Ctl/dev/run.sh run_tests | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
file: ./src/coverage.xml |