diff --git a/.github/workflows/unit.yaml b/.github/workflows/unit.yaml index 4affdc7e9f16dc4016dabcfb51e9b23676cdb16d..e0d756f2fc5b38884c065a0ba899f201209f284d 100644 --- a/.github/workflows/unit.yaml +++ b/.github/workflows/unit.yaml @@ -67,3 +67,22 @@ jobs: run: pip install nox - name: Test with pytest run: nox -s ci_test + - uses: actions/upload-artifact@v4 + if: ${{ matrix.python-version == '3.10' }} + with: + name: coverage + path: coverage.xml + + coverage: + needs: [build] + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v4 + with: + name: coverage + path: coverage.xml + - name: codecov + uses: codecov/codecov-action@v4 + with: + file: ./coverage.xml + token: ${{ secrets.CODECOV_TOKEN }}