FILE / ScuroNeko/gitea-runner-test

.gitea/workflows/python.yaml

Исходный файл и его история в репозитории.
FILE d9ffe5d80d6fa3e664a7559ecf2deaac5b2abab7
Files
gitea-runner-test/.gitea/workflows/python.yaml
T
ScuroNeko d9ffe5d80d
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build and push image / docker (push) Successful in 5m2s
Python CI / python (push) Failing after 43s
Golang lint / GoLint (push) Successful in 22m11s
python
2026-04-23 16:49:23 +03:00

38 lines
920 B
YAML

name: Python CI
run-name: Python CI for ${{ gitea.repository }} by ${{ gitea.actor }} 🐍
on:
push:
pull_request:
jobs:
python:
runs-on: linux-latest
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.14"
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