Fix Gitea runner CI: remove sudo, install system deps via apt, replace setup-python with apt-get
This commit is contained in:
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user