fix(ci): handle missing sudo on Gitea, push to ghcr.io on GitHub
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user