diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f2cf78..a47e1b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: - '3.13' steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Set up git-annex run: | sudo apt-get update diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a45c97f..82b9f0a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Install Python uses: actions/setup-python@v6 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0471c52..e2bf504 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: contents: write steps: - name: Checkout source - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v6 with: diff --git a/junifer_data/tests/test_utils.py b/junifer_data/tests/test_utils.py index a570b93..33021d5 100644 --- a/junifer_data/tests/test_utils.py +++ b/junifer_data/tests/test_utils.py @@ -45,13 +45,15 @@ def test_check_dataset_hexsha_errors(tmp_path: Path) -> None: Pytest fixture that provides a temporary directory. """ - with pytest.raises(ValueError, match="Cannot verify hexsha for main tag."): + with pytest.raises( + ValueError, match=r"Cannot verify hexsha for main tag." + ): check_dataset(data_dir=tmp_path, hexsha="wrong") # Now clone the dataset without checking check_dataset(data_dir=tmp_path, tag="1") - with pytest.raises(ValueError, match="Commit verification failed."): + with pytest.raises(ValueError, match=r"Commit verification failed."): check_dataset(data_dir=tmp_path, tag="1", hexsha="wrong") # Check with the right hexsha @@ -73,7 +75,7 @@ def test_check_dataset_hexsha_errors(tmp_path: Path) -> None: dataset.repo.add((ds_path / "test.txt").as_posix()) dataset.repo.commit(msg="update") - with pytest.raises(ValueError, match="Wrong commit checked out."): + with pytest.raises(ValueError, match=r"Wrong commit checked out."): check_dataset(data_dir=tmp_path, tag="1") # Update tag @@ -84,7 +86,7 @@ def test_check_dataset_hexsha_errors(tmp_path: Path) -> None: check_dataset(data_dir=tmp_path, tag="1") # But does not have the right hexsha - with pytest.raises(ValueError, match="Commit verification failed."): + with pytest.raises(ValueError, match=r"Commit verification failed."): check_dataset( data_dir=tmp_path, tag="1",