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/