From 0e5f48d43fea0acaa1c4a119f0a620d4994a047a Mon Sep 17 00:00:00 2001 From: bnair123 Date: Sat, 27 Dec 2025 18:44:24 +0400 Subject: [PATCH] Fix CI/CD workflow: use setup-python instead of container - Remove container directive that caused Node.js missing error - Use actions/setup-python@v5 for Python 3.12 setup - Add sudo for apt-get and make commands on Ubuntu runner - Add ruff format check step --- .gitea/workflows/ci-cd.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index ca34d25..376625b 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -14,19 +14,22 @@ env: jobs: test: runs-on: ubuntu-latest - container: - image: python:3.12-slim steps: - name: Checkout code uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Install system dependencies run: | - apt-get update - apt-get install -y --no-install-recommends build-essential wget + sudo apt-get update + sudo apt-get install -y --no-install-recommends build-essential wget wget -q http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz tar -xzf ta-lib-0.4.0-src.tar.gz - cd ta-lib && ./configure --prefix=/usr && make && make install + cd ta-lib && ./configure --prefix=/usr && sudo make && sudo make install cd .. && rm -rf ta-lib ta-lib-0.4.0-src.tar.gz - name: Install Python dependencies @@ -37,6 +40,9 @@ jobs: - name: Run linting run: ruff check . + - name: Run format check + run: ruff format --check . + - name: Run type checking run: mypy src/