36 lines
908 B
YAML
36 lines
908 B
YAML
# Forgejo / Gitea Actions — проверка перед деплоем (совместимо с синтаксисом GitHub Actions).
|
||
name: CI
|
||
|
||
on:
|
||
push:
|
||
branches: [main]
|
||
tags:
|
||
- "v*"
|
||
pull_request:
|
||
branches: [main]
|
||
|
||
concurrency:
|
||
group: ci-${{ github.workflow }}-${{ github.ref }}
|
||
cancel-in-progress: true
|
||
|
||
jobs:
|
||
test:
|
||
runs-on: ubuntu-latest
|
||
timeout-minutes: 15
|
||
steps:
|
||
- name: Checkout
|
||
uses: actions/checkout@v4
|
||
|
||
# Без cache: pip — на Forgejo/act часто таймаут getCacheEntry (172.17.x), долгий шаг и warning.
|
||
- name: Python 3.12
|
||
uses: actions/setup-python@v5
|
||
with:
|
||
python-version: "3.12"
|
||
|
||
- name: Pytest
|
||
run: |
|
||
set -euo pipefail
|
||
python -m pip install -U pip
|
||
python -m pip install -e ".[dev]"
|
||
python -m pytest tests/ -q --tb=short
|