diff --git a/.github/workflows/test_cc.yml b/.github/workflows/test_cc.yml index 6e12d7880b..3918447974 100644 --- a/.github/workflows/test_cc.yml +++ b/.github/workflows/test_cc.yml @@ -55,9 +55,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 e74c0abde2..5af4f95dc8 100644 --- a/.github/workflows/test_cuda.yml +++ b/.github/workflows/test_cuda.yml @@ -65,6 +65,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 1bd78bfae0..7df51e6456 100644 --- a/.github/workflows/test_python.yml +++ b/.github/workflows/test_python.yml @@ -39,9 +39,9 @@ jobs: HOROVOD_WITHOUT_GLOO: 1 - run: dp --version - run: pytest --cov=deepmd --cov=deepmd_utils source/tests --durations=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]