Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Change session dependency by middleware in student routes #122 #319

Change session dependency by middleware in student routes #122

Change session dependency by middleware in student routes #122 #319

Workflow file for this run

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
- 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
- name: Run tests
run: cd backend && poetry run python -m unittest discover tests
env:
TEST_DB_USER: githubactions