36 lines
775 B
YAML
36 lines
775 B
YAML
name: Desktop CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://git.daemonlord.ru/actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Python
|
|
uses: https://git.daemonlord.ru/actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
- name: Validate syntax
|
|
run: |
|
|
python -m py_compile app_version.py main.py build.py tests/test_auth_relogin_smoke.py
|
|
|
|
- name: Run tests
|
|
run: |
|
|
python -m unittest tests/test_auth_relogin_smoke.py
|