diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 41a33ee..e7ed8f3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -15,9 +15,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: python3 --version + - name: Ensure python3 available (runner image may lack it) + run: | + if command -v python3 >/dev/null 2>&1; then + python3 --version + else + . /etc/os-release + echo "python3 missing — installing on $ID $VERSION_CODENAME" + apt-get update -qq + apt-get install -y -qq python3 python3-yaml + python3 --version + python3 -c "import yaml" && echo "PyYAML OK" + fi - run: node --version - - run: echo "Runner works!" - name: Python syntax check run: |