Skip to content

Federation

Federation #1032

Workflow file for this run

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