From cb68ab57d9cef741ca0924924edc549730815b71 Mon Sep 17 00:00:00 2001 From: Tharsis Souza Date: Wed, 16 Oct 2024 21:33:42 -0300 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 70317f5..f7662c6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -21,24 +21,14 @@ jobs: with: python-version: "3.11" - - name: Cache FFmpeg - id: cache-ffmpeg - uses: actions/cache@v3 - with: - path: ~/.ffmpeg - key: ${{ runner.os }}-ffmpeg - - - name: Install FFmpeg - if: steps.cache-ffmpeg.outputs.cache-hit != 'true' + - name: Install FFmpeg 6.1.1-3 run: | + sudo add-apt-repository ppa:savoury1/ffmpeg6 sudo apt-get update - sudo apt-get install -y ffmpeg - mkdir -p ~/.ffmpeg - cp $(which ffmpeg) ~/.ffmpeg/ - cp $(which ffprobe) ~/.ffmpeg/ + sudo apt-get install -y ffmpeg=6.1.1-3~jammy - - name: Add FFmpeg to PATH - run: echo "$HOME/.ffmpeg" >> $GITHUB_PATH + - name: Check FFmpeg version + run: ffmpeg -version - name: Cache pip dependencies uses: actions/cache@v3 @@ -56,12 +46,4 @@ jobs: - name: Lint with flake8 run: | - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - - name: Test with pytest - env: - GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - run: | - pytest + flake8 . --count --select=E