From 4be4074f2e961bf72bde4a60cebac6bcc99258df Mon Sep 17 00:00:00 2001 From: Alexander Piskun <13381981+bigcat88@users.noreply.github.com> Date: Thu, 9 Jan 2025 21:14:30 +0300 Subject: [PATCH] libheif's PPA had been updated: enabling linux actions (#324) Signed-off-by: Alexander Piskun --- .github/workflows/analysis-coverage.yml | 76 ++++++++++++------------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/analysis-coverage.yml b/.github/workflows/analysis-coverage.yml index 1a933794..65011f2b 100644 --- a/.github/workflows/analysis-coverage.yml +++ b/.github/workflows/analysis-coverage.yml @@ -65,25 +65,25 @@ jobs: - name: LibHeif info run: python3 -c "import pillow_heif; print(pillow_heif.libheif_info())" -# - name: Generate coverage report -# run: | -# TEST_PLUGIN_LOAD="$(whereis libheif | awk '{print $2}')/plugins/libheif-x265.so" coverage run -m pytest -# coverage xml && coverage html -# -# - name: HTML coverage to artifacts -# uses: actions/upload-artifact@v3 -# with: -# name: coverage_linux -# path: ./htmlcov -# if-no-files-found: error -# -# - name: Upload report to Codecov -# uses: codecov/codecov-action@v4 -# with: -# token: ${{ secrets.CODECOV_TOKEN }} -# file: ./coverage.xml -# fail_ci_if_error: true -# verbose: true + - name: Generate coverage report + run: | + TEST_PLUGIN_LOAD="$(whereis libheif | awk '{print $2}')/plugins/libheif-x265.so" coverage run -m pytest + coverage xml && coverage html + + - name: HTML coverage to artifacts + uses: actions/upload-artifact@v3 + with: + name: coverage_linux + path: ./htmlcov + if-no-files-found: error + + - name: Upload report to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + fail_ci_if_error: true + verbose: true coverage-linux-pillow-dev: runs-on: ubuntu-22.04 @@ -112,25 +112,25 @@ jobs: - name: LibHeif info run: python3 -c "import pillow_heif; print(pillow_heif.libheif_info())" -# - name: Generate coverage report -# run: | -# TEST_PLUGIN_LOAD="$(whereis libheif | awk '{print $2}')/plugins/libheif-x265.so" coverage run -m pytest -# coverage xml && coverage html -# -# - name: HTML coverage to artifacts -# uses: actions/upload-artifact@v3 -# with: -# name: coverage_linux_dev -# path: ./htmlcov -# if-no-files-found: error -# -# - name: Upload report to Codecov -# uses: codecov/codecov-action@v4 -# with: -# token: ${{ secrets.CODECOV_TOKEN }} -# file: ./coverage.xml -# fail_ci_if_error: true -# verbose: true + - name: Generate coverage report + run: | + TEST_PLUGIN_LOAD="$(whereis libheif | awk '{print $2}')/plugins/libheif-x265.so" coverage run -m pytest + coverage xml && coverage html + + - name: HTML coverage to artifacts + uses: actions/upload-artifact@v3 + with: + name: coverage_linux_dev + path: ./htmlcov + if-no-files-found: error + + - name: Upload report to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + fail_ci_if_error: true + verbose: true coverage-macos: runs-on: macos-13