Skip to content

Commit

Permalink
recover manual codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonVides committed Nov 20, 2023
1 parent 8e911ac commit 6762c22
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
if: ${{ matrix.os == 'windows-2022' }}
Expand All @@ -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' }}

0 comments on commit 6762c22

Please sign in to comment.