diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 74048121..f1cb3f6b 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -72,7 +72,8 @@ jobs: source tools/ci/activate.sh make $CHECK_TYPE if: ${{ matrix.check != 'skiptests' }} - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: file: cov.xml + token: ${{ secrets.CODECOV_TOKEN }} if: ${{ always() }} diff --git a/.github/workflows/stable.yml b/.github/workflows/stable.yml index a05ae799..c02933ee 100644 --- a/.github/workflows/stable.yml +++ b/.github/workflows/stable.yml @@ -97,7 +97,8 @@ jobs: source tools/ci/activate.sh make $CHECK_TYPE if: ${{ matrix.check != 'skiptests' }} - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 with: file: cov.xml + token: ${{ secrets.CODECOV_TOKEN }} if: ${{ always() }} diff --git a/bids/tests/test_config.py b/bids/tests/test_config.py index 2209526a..ac9f3448 100644 --- a/bids/tests/test_config.py +++ b/bids/tests/test_config.py @@ -2,6 +2,7 @@ import tempfile import os import json +import warnings import pytest from bids.config import reset_options from bids.tests import get_test_data_path @@ -66,7 +67,7 @@ def test_extension_initial_dot(mock_config): bids.config.set_option('extension_initial_dot', True) # No warnings on layout construction - with pytest.warns(None) as record: + with warnings.catch_warnings(): + warnings.simplefilter("error") layout = bids.BIDSLayout(ds117) - assert len(record) == 0 assert layout.get(extension='nii.gz')[0].entities['extension'] == '.nii.gz'