ddd8788701
- Add build-dist-linux.sh: venv-based tarball with systemd installer - Add build-linux job to release.yml (parallel with build-windows) - Include Linux download in release body - Allow pytest to pass when no tests are collected (exit code 5)
36 lines
663 B
YAML
36 lines
663 B
YAML
name: Lint & Test
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
|
|
- name: Build frontend
|
|
run: npm ci && npm run build
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install --upgrade pip
|
|
pip install -e ".[dev]"
|
|
|
|
- name: Lint
|
|
run: ruff check media_server/
|
|
|
|
- name: Test
|
|
run: pytest --tb=short -q || test $? -eq 5
|