fix: hopefully actually fix CI

Turns out that GitHub doesnt give permissions to "on pr" tokens. Split that out into a independent workflow to hopefully resolve that.
Again, permissions, pushing to the registry is not allowed. So instead we upload the builder as a artifact and redownload it later. (So the theory)
This commit is contained in:
GameTec_live
2026-08-10 21:35:10 +02:00
parent cf2b268a7d
commit e509bc5311
5 changed files with 155 additions and 60 deletions
+4 -28
View File
@@ -37,23 +37,11 @@ jobs:
- name: Set up uv
uses: astral-sh/setup-uv@v6
- name: Install dependencies with uv (if lockfile present)
if: ${{ hashFiles('software/uv.lock') != '' }}
- name: Install dependencies with uv
run: uv sync --dev
- name: Install tools with pip (fallback)
if: ${{ hashFiles('software/uv.lock') == '' }}
run: |
python -m pip install --upgrade pip
# Try project requirements if present
if [ -f script/requirements.txt ]; then pip install -r script/requirements.txt || true; fi
# Ensure ruff is available
pip install ruff
- name: Ruff check
run: |
set -e
(uv run ruff --version && uv run ruff check .) || ruff check .
run: uv run ruff check .
lint-types:
runs-on: ubuntu-latest
@@ -83,20 +71,8 @@ jobs:
- name: Set up uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install dependencies with uv (if lockfile present)
if: ${{ hashFiles('software/uv.lock') != '' }}
- name: Install dependencies with uv
run: uv sync --dev
- name: Install tools with pip (fallback)
if: ${{ hashFiles('software/uv.lock') == '' }}
run: |
python -m pip install --upgrade pip
# Try project requirements if present
if [ -f script/requirements.txt ]; then pip install -r script/requirements.txt || true; fi
# Ensure pyrefly is available
pip install pyrefly
- name: Pyrefly check
run: |
set -e
(uv run pyrefly --help >/dev/null 2>&1 && uv run pyrefly check) || pyrefly check
run: uv run pyrefly check