diff --git a/.github/workflows/benchmarks.yaml b/.github/workflows/benchmarks.yaml index ba7fb2601b..45fd2868d5 100644 --- a/.github/workflows/benchmarks.yaml +++ b/.github/workflows/benchmarks.yaml @@ -18,16 +18,16 @@ jobs: with: python-version: "3.12" - - uses: astral-sh/setup-uv@v3 - with: - enable-cache: true - cache-dependency-glob: pyproject.toml - - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.base.sha }} fetch-depth: 0 + - uses: astral-sh/setup-uv@v3 + with: + enable-cache: true + cache-dependency-glob: pyproject.toml + - run: uv pip install '.[tests]' --system - name: run benchmarks on base branch run: pytest --benchmark-autosave dvc/testing/benchmarks/ -k 'test_init or test_help' diff --git a/dvc/fs/dvc.py b/dvc/fs/dvc.py index 6d1a77e74d..fbf3f99c0f 100644 --- a/dvc/fs/dvc.py +++ b/dvc/fs/dvc.py @@ -571,7 +571,7 @@ def _get( # noqa: C901, PLR0912 os.makedirs(lpath, exist_ok=True) for d in _dirs: - os.mkdir(d) + os.makedirs(d, exist_ok=True) def get_file(arg: tuple[FileSystem, tuple[str, str, Optional[dict]]]): fs, (src, dest, info) = arg