Skip to content

fix pr action

fix pr action #124

Workflow file for this run

name: Coverage
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: |
python3 -m pip install -U numpy matplotlib
sudo apt update && sudo apt -y install lcov
- run: |
sudo rm /usr/bin/gcov
sudo ln -s /usr/bin/gcov-12 /usr/bin/gcov
python3 build.py cov --cmake-extra="-DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12"
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: tests/build/CMakeFiles/test_autd3.dir/coverage.info
fail_ci_if_error: true