CI update

added
Docker on tag
Autotest on mergerequest to main
This commit is contained in:
2026-09-16 20:17:27 +03:00
parent 250ad25df4
commit 762f36beab
11 changed files with 352 additions and 9 deletions

49
.gitea/workflows/test.yml Normal file
View File

@@ -0,0 +1,49 @@
name: Tests
on:
pull_request:
branches:
- main
jobs:
pytest:
# Имя твоего Gitea Runner.
# У тебя уже используется docker-amd64 в build.yml.
runs-on: docker-amd64
steps:
# -------------------------
# Checkout repository
# -------------------------
- name: Checkout
uses: actions/checkout@v4
# -------------------------
# Python
# -------------------------
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ".py-version"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r req.txt
python -m pip install -r req-dev.txt
# -------------------------
# Tests
# -------------------------
- name: Run tests
run: |
python -m pytest