fix(ci): handle missing sudo on Gitea, push to ghcr.io on GitHub
Some checks failed
Test and Build / test (push) Successful in 1m34s
Test and Build / build (push) Failing after 8s

Gitea: Try ffmpeg, then sudo apt-get, then apt-get without sudo
GitHub: Login to ghcr.io and push tagged image to container registry
This commit is contained in:
2025-11-30 18:32:55 -05:00
parent 7a852607e6
commit 291d0e78df
2 changed files with 36 additions and 10 deletions

View File

@@ -24,7 +24,14 @@ jobs:
run: $HOME/.local/bin/uv sync
- name: Install FFmpeg
run: sudo apt-get update && sudo apt-get install -y ffmpeg
run: |
if command -v ffmpeg &> /dev/null; then
echo "FFmpeg already installed"
elif command -v sudo &> /dev/null; then
sudo apt-get update && sudo apt-get install -y ffmpeg
else
apt-get update && apt-get install -y ffmpeg
fi
- name: Run tests
run: $HOME/.local/bin/uv run pytest tests/ -v --ignore=tests/test_integration.py