FILE / ScuroNeko/gitea-runner-test
.gitea/workflows/python.yaml
Исходный файл и его история в репозитории.
29 lines
661 B
YAML
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
|