FILE / ScuroNeko/gitea-runner-test

.gitea/workflows/python.yaml

Исходный файл и его история в репозитории.
FILE 99d4e799ec1d17696670aa5866e057dc58894384
Files
gitea-runner-test/.gitea/workflows/python.yaml
T
ScuroNeko 99d4e799ec
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 12s
Build and push image / docker (push) Successful in 1m8s
Python CI / python (push) Failing after 19s
Golang lint / GoLint (push) Has been cancelled
test
2026-04-23 18:21:14 +03:00

29 lines
661 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: 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