diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index c7c0c63..08b744b 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -20,10 +20,10 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | @@ -33,4 +33,9 @@ jobs: - name: Test with pytest run: | python -m pip install . - python -m pytest \ No newline at end of file + python -m pytest + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/tests/requirements.txt b/tests/requirements.txt index f9f1e45..776bc8c 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -2,4 +2,5 @@ pytest networkx jax numpy -scipy \ No newline at end of file +scipy +pytest-cov \ No newline at end of file