From 5c8c8754c2863d6e879b0aa69d92d02d539d2029 Mon Sep 17 00:00:00 2001 From: Galen Lynch Date: Fri, 25 Oct 2024 19:03:02 -0700 Subject: [PATCH] Attempt to fix tag workflow --- .github/workflows/tag_and_publish.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tag_and_publish.yml b/.github/workflows/tag_and_publish.yml index 2532030..2e78f52 100644 --- a/.github/workflows/tag_and_publish.yml +++ b/.github/workflows/tag_and_publish.yml @@ -13,12 +13,16 @@ jobs: ref: ${{ env.DEFAULT_BRANCH }} fetch-depth: 0 token: ${{ secrets.SERVICE_TOKEN }} + - uses: FedericoCarboni/setup-ffmpeg@v3 + id: setup-ffmpeg + with: + ffmpeg-version: release - name: Set up Python 3.10 uses: actions/setup-python@v5 with: python-version: '3.10' - name: Install dependencies - run: | + run: | python -m pip install -e .[dev] --no-cache-dir - name: Get Python version and Update README.md run: | @@ -43,7 +47,7 @@ jobs: coverage run -m unittest discover coverage_val=$(coverage report | grep "^TOTAL" | grep -o '[0-9]\+%' | grep -o '[0-9]\+') coverage_badge=$(grep -o "coverage-[^?]*" README.md) - if (( $(echo "$coverage_val >= 90.00" | bc -l) )); then + if (( $(echo "$coverage_val >= 90.00" | bc -l) )); then new_coverage_badge="coverage-$coverage_val%25-brightgreen" elif (( $(echo "$coverage_val < 80.00" | bc -l) )); then new_coverage_badge="coverage-$coverage_val%25-red" @@ -87,7 +91,8 @@ jobs: libseccomp-dev \ wget \ pkg-config \ - procps + procps \ + ffmpeg - name: Install GO run: | wget https://dl.google.com/go/go$GO_VERSION.$GO_OS-$GO_ARCH.tar.gz