This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
update deadline #850
Workflow file for this run
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: Backend | |
on: [push] | |
jobs: | |
lint: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Install dependencies | |
run: cd backend && poetry install --no-root | |
- name: Lint code | |
run: cd backend && poetry run ruff check | |
- name: Run Pyright | |
run: cd backend && poetry run pyright | |
test: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Poetry | |
run: pip install poetry | |
- name: Install dependencies | |
run: cd backend && poetry install --no-root | |
- name: Reset database | |
run: psql -U githubactions -h localhost -d delphi-test -c "DROP OWNED BY current_user;" | |
env: | |
PGPASSWORD: postgres | |
- name: Run tests | |
run: cd backend && poetry run python -m unittest discover tests | |
env: | |
DB_HOST: localhost | |
DB_PORT: 5432 | |
DB_USERNAME: githubactions | |
DB_PASSWORD: postgres | |
DB_DATABASE: delphi-test | |
DELPHI_DEBUG: 1 |