From 2a560a13b575b2b054f3e10fc4a29a1bbfaed2f7 Mon Sep 17 00:00:00 2001 From: Christopher Rabotin Date: Fri, 29 Dec 2023 18:15:14 -0700 Subject: [PATCH] Add LFS to Python tests --- .github/workflows/python.yml | 8 ++++++++ anise/src/almanac/meta.rs | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index fbf952f7..3a5836f7 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -26,6 +26,8 @@ jobs: target: [x86_64, x86, aarch64, armv7, s390x, ppc64le] steps: - uses: actions/checkout@v3 + with: + lfs: true - uses: actions/setup-python@v4 with: @@ -77,6 +79,8 @@ jobs: target: [x64, x86] steps: - uses: actions/checkout@v3 + with: + lfs: true - uses: actions/setup-python@v4 with: @@ -114,6 +118,8 @@ jobs: target: [x86_64, aarch64] steps: - uses: actions/checkout@v3 + with: + lfs: true - uses: actions/setup-python@v4 with: @@ -147,6 +153,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + lfs: true - name: Build sdist uses: PyO3/maturin-action@v1 diff --git a/anise/src/almanac/meta.rs b/anise/src/almanac/meta.rs index 83b1eec3..f03854d5 100644 --- a/anise/src/almanac/meta.rs +++ b/anise/src/almanac/meta.rs @@ -169,14 +169,14 @@ impl MetaFile { if !app_dir.data_dir.exists() { // Create the folders - create_dir_all(app_dir.data_dir).or_else(|e| { - Err(MetaAlmanacError::MetaIO { + create_dir_all(app_dir.data_dir).map_err(|e| { + MetaAlmanacError::MetaIO { path: dest_path.to_str().unwrap().into(), what: "creating directories for storage", source: InputOutputError::IOError { kind: e.kind(), }, - }) + } })?; }