From 6762c225b7e2ea53e07f49bfae2aea577262f1f8 Mon Sep 17 00:00:00 2001 From: Nelson Vides Date: Mon, 20 Nov 2023 13:59:02 +0100 Subject: [PATCH] recover manual codecov --- .github/workflows/ci.yml | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97c38bd..8c75c3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,16 +26,16 @@ jobs: with: otp-version: ${{matrix.otp}} rebar3-version: ${{matrix.rebar3}} - # - name: Restore _build - # uses: actions/cache@v3 - # with: - # path: _build - # key: _build-cache-for-os-${{matrix.os}}-otp-${{matrix.otp}}-rebar3-${{matrix.rebar3}}-hash-${{hashFiles('rebar.lock')}} - # - name: Restore rebar3's cache - # uses: actions/cache@v3 - # with: - # path: ~/.cache/rebar3 - # key: rebar3-cache-for-os-${{matrix.os}}-otp-${{matrix.otp}}-rebar3-${{matrix.rebar3}}-hash-${{hashFiles('rebar.lock')}} + - name: Restore _build + uses: actions/cache@v3 + with: + path: _build + key: _build-cache-for-os-${{matrix.os}}-otp-${{matrix.otp}}-rebar3-${{matrix.rebar3}}-hash-${{hashFiles('rebar.lock')}} + - name: Restore rebar3's cache + uses: actions/cache@v3 + with: + path: ~/.cache/rebar3 + key: rebar3-cache-for-os-${{matrix.os}}-otp-${{matrix.otp}}-rebar3-${{matrix.rebar3}}-hash-${{hashFiles('rebar.lock')}} - name: Enable Developer Command Prompt uses: ilammy/msvc-dev-cmd@v1.12.1 if: ${{ matrix.os == 'windows-2022' }} @@ -48,11 +48,9 @@ jobs: if: ${{ matrix.otp == '26.1' && matrix.os == 'ubuntu-22.04' }} - run: rebar3 as test codecov analyze if: ${{ matrix.otp == '26.1' && matrix.os == 'ubuntu-22.04' }} - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - fail_ci_if_error: true - gcov: true - gcov_include: c_src/fast_pbkdf2.c - # - run: gcov -o c_src fast_pbkdf2 + - run: gcov -o c_src fast_pbkdf2 + if: ${{ matrix.otp == '26.1' && matrix.os == 'ubuntu-22.04' }} + - run: pip install --user codecov + if: ${{ matrix.otp == '26.1' && matrix.os == 'ubuntu-22.04' }} + - run: /home/runner/.local/bin/codecov if: ${{ matrix.otp == '26.1' && matrix.os == 'ubuntu-22.04' }}