Skip to content

Commit

Permalink
Update codecov.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe authored Sep 24, 2024
1 parent c59e8ce commit 1234524
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ jobs:
args: 'mphys_comp'

steps:
- uses: actions/checkout@v3
- uses: codecov/codecov-action@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: 3.8
Expand Down Expand Up @@ -70,6 +69,10 @@ jobs:
docker exec -i regtest /bin/bash -c ". ${{env.DOCKER_ENV_FILE}} && cd ${{env.DOCKER_WORKING_DIR}}/src/adjoint && cp -r ../include ./Make/linux*/DASolver/ && cp -r ../include ./Make/linux*/"
docker exec -i regtest /bin/bash -c ". ${{env.DOCKER_ENV_FILE}} && cd ${{env.DOCKER_WORKING_DIR}}/src/adjointAD && cp -r ../include ./Make/linux*/DASolver/ && cp -r ../include ./Make/linux*/"
docker exec -i regtest /bin/bash -c ". ${{env.DOCKER_ENV_FILE}} && cd ${{env.DOCKER_WORKING_DIR}} && lcov --capture --directory . --output-file coverage.info && echo dafoamuser | sudo -S cp -r coverage.info ${{env.DOCKER_MOUNT_DIR}}/"
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov
- name: Upload reports to CodeCov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: ./coverage.info,./coverage.xml
token: ${{secrets.CODECOV_TOKEN}}
verbose: true

0 comments on commit 1234524

Please sign in to comment.