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