* add backend lint job * add python actions * add linting and unittests to CI * add missing dependencies * fix wrong cd cmd * fix missing config file
41 lines
867 B
YAML
41 lines
867 B
YAML
name: CI
|
|
on: push
|
|
jobs:
|
|
lint_frontend:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- name: Install
|
|
run: |
|
|
cd src/frontend
|
|
npm ci
|
|
- name: Run ESLint
|
|
run: |
|
|
cd src/frontend
|
|
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
|