From a496ff39e9a6ca2dc8fe3839c0a0ade92fccf9de Mon Sep 17 00:00:00 2001 From: itqop Date: Fri, 18 Jul 2025 21:06:31 +0300 Subject: [PATCH] Add CI --- .gitea/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..0bad7bd --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -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