FILE / ScuroNeko/gitea-runner-test

.gitea/workflows/python.yaml

Исходный файл и его история в репозитории.
FILE 32493a96e429404f2d4869e3d0145dba1ef0dd91
Files
gitea-runner-test/.gitea/workflows/python.yaml
T
ScuroNeko e12fe78138
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Build and push image / docker (push) Failing after 24s
Python CI / python (push) Has been cancelled
Golang lint / GoLint (push) Has been cancelled
test
2026-04-23 15:22:08 +03:00

38 lines
921 B
YAML

name: Python CI
run-name: Python CI for ${{ gitea.repository }} by ${{ gitea.actor }} 🐍
on:
push:
pull_request:
jobs:
python:
runs-on: python-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: |
requirements.txt
requirements-dev.txt
pyproject.toml
- name: Install dependencies
run: |
python -V
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
pip install ruff pytest
- name: Lint
run: ruff check .
- name: Run tests
run: pytest -q