Fix Gitea runner CI: remove sudo, install system deps via apt, replace setup-python with apt-get

This commit is contained in:
2026-05-07 12:20:08 -06:00
parent 3093b41033
commit e5c1c766b6
4 changed files with 78 additions and 10 deletions

View File

@ -12,6 +12,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: |
apt-get update
apt-get install -y \
libgtk-3-dev \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
libssl-dev \
patchelf
- run: cargo test
working-directory: src-tauri
- run: cargo check --release
@ -38,8 +47,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install pytest
- run: python -m pytest backend/tests/ || true
- run: |
apt-get update
apt-get install -y python3 python3-pip
- run: pip3 install pytest
- run: python3 -m pytest backend/tests/ || true

View File

@ -19,8 +19,8 @@ jobs:
working-directory: frontend
- uses: dtolnay/rust-toolchain@stable
- run: |
sudo apt-get update
sudo apt-get install -y \
apt-get update
apt-get install -y \
libwebkit2gtk-4.1-dev \
librsvg2-dev \
patchelf \

View File

@ -26,9 +26,9 @@ jobs:
package-lock.json
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
run: |
apt-get update
apt-get install -y python3 python3-pip
- name: Enforce feature spec policy (PR only)
if: github.event_name == 'pull_request'