Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 6 additions & 4 deletions junifer_data/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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",
Expand Down