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
This commit is contained in:
1 parent
b63f2da22c
commit
b163732c24
1 file changed
+22
@@ -16,3 +16,25 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd src/frontend
|
cd src/frontend
|
||||||
npm run lint
|
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
|
||||||
Reference in new issue
Block a user