Files
ci-demo/workflows_заготовки/ci-artifacts.yml

27 lines
828 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Заготовка для акта «Артефакты» (Gitea Actions): скопировать поверх .gitea/workflows/ci.yml
# upload-artifact@v3 — максимально совместим с Gitea Actions;
# на новых версиях Gitea можно заменить на @v4.
name: CI (artifacts)
on:
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- run: pip install -r requirements.txt
- run: pytest -q --cov=app --cov-branch --cov-fail-under=60 --cov-report=xml
- uses: actions/upload-artifact@v3
if: always()
with:
name: coverage-report
path: coverage.xml