This commit is contained in:
itqop 2025-07-18 21:06:31 +03:00
parent cd67e88e6a
commit a496ff39e9
1 changed files with 37 additions and 0 deletions

37
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,37 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint_and_test:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install black ruff pytest
- name: Run Black
run: black --check .
- name: Run Ruff
run: ruff check .
- name: Run Pytest
run: pytest