From 9791c40d0c037f205362f14ec74e1b521e93a369 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 21:02:08 +0000 Subject: [PATCH] Use native shell commands in CI --- .gitea/workflows/ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4af0357..4a4bf1f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -9,24 +9,23 @@ on: jobs: test: runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - name: Checkout code - uses: actions/checkout@v4 + run: git checkout ${{ github.sha }} - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.11' + run: | + apt-get update && apt-get install -y python3 python3-pip - name: Install dependencies run: | - python -m pip install --upgrade pip + python3 -m pip install --upgrade pip pip install -e ".[dev]" - name: Run tests - run: python -m pytest tests/ -v --tb=short + run: python3 -m pytest tests/ -v --tb=short - name: Run ruff linting - run: pip install ruff && ruff check src/confgen/ tests/ + run: | + pip install ruff + ruff check src/confgen/ tests/