From b163732c247876e3ea9af995143c68bc0d516fe1 Mon Sep 17 00:00:00 2001 From: Denis <68426415+zoopsel@users.noreply.github.com> Date: Wed, 1 Apr 2026 08:01:29 +0200 Subject: [PATCH] Backend - Add backend lint job and unit tests (#37) * add backend lint job * add python actions * add linting and unittests to CI * add missing dependencies * fix wrong cd cmd * fix missing config file --- .github/workflows/main.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a77c03..c8a0079 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,4 +15,26 @@ jobs: - name: Run ESLint run: | cd src/frontend - npm run lint \ No newline at end of file + npm run lint + lint_backend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 + with: + python-version: "3.14" + - name: install + run: | + cd src/backend + pip install -r requirements.txt + pip install ruff ty + cp config_template.toml config.toml + - name: lint + run: | + cd src/backend + ruff check autobeerpong + ty check autobeerpong + - name: unittest + run: | + cd src/backend + python -m unittest