diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index 2253a25ee0..f2af6f45ae 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -61,9 +61,9 @@ jobs: PATH: ${{ github.workspace }}/dp_test/bin:$PATH LD_LIBRARY_PATH: ${{ github.workspace }}/dp_test/lib if: ${{ !matrix.check_memleak }} - - uses: codecov/codecov-action@v3 - with: - gcov: true + - uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} pass: name: Pass testing C++ needs: [testcc] diff --git a/.github/workflows/test_cuda.yml b/.github/workflows/test_cuda.yml index 4e9725103a..7c08e50912 100644 --- a/.github/workflows/test_cuda.yml +++ b/.github/workflows/test_cuda.yml @@ -66,6 +66,6 @@ jobs: TF_INTER_OP_PARALLELISM_THREADS: 1 LAMMPS_PLUGIN_PATH: ${{ github.workspace }}/dp_test/lib/deepmd_lmp CUDA_PATH: /usr/local/cuda-12.2 - - uses: codecov/codecov-action@v3 - with: - gcov: true + - uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/test_python.yml b/.github/workflows/test_python.yml index 091a2a61f8..e1ac3a716c 100644 --- a/.github/workflows/test_python.yml +++ b/.github/workflows/test_python.yml @@ -42,9 +42,9 @@ jobs: - run: pytest --cov=deepmd source/tests --durations=0 env: NUM_WORKERS: 0 - - uses: codecov/codecov-action@v3 - with: - gcov: true + - uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} pass: name: Pass testing Python needs: [testpython]