From 293c2e3cb48ccd3986d51b28e82f4b32f2b4e760 Mon Sep 17 00:00:00 2001 From: Mathieu Strypsteen Date: Fri, 23 Feb 2024 17:16:36 +0100 Subject: [PATCH] Add Github actions --- .github/workflows/backend.yml | 14 ++++++++++++++ backend/db/implementation/SqlLesgeverDAO.py | 1 + 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/backend.yml diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml new file mode 100644 index 00000000..2c541fbf --- /dev/null +++ b/.github/workflows/backend.yml @@ -0,0 +1,14 @@ +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + - name: Install dependencies + run: pip install -r backend/requirements.txt + - name: Lint code + run: ruff check backend diff --git a/backend/db/implementation/SqlLesgeverDAO.py b/backend/db/implementation/SqlLesgeverDAO.py index d590fb83..e1a0b740 100644 --- a/backend/db/implementation/SqlLesgeverDAO.py +++ b/backend/db/implementation/SqlLesgeverDAO.py @@ -7,6 +7,7 @@ class SqlTeacherDAO(TeacherDAO): def get_teacher(self, ident: int): + l = 1 #test teacher: Teacher = Teacher.query.get(ident=ident) if not teacher: