Skip to content

Commit

Permalink
Add LFS to Python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Dec 30, 2023
1 parent 1cbf2f5 commit 2a560a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -77,6 +79,8 @@ jobs:
target: [x64, x86]
steps:
- uses: actions/checkout@v3
with:
lfs: true

- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -114,6 +118,8 @@ jobs:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v3
with:
lfs: true

- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions anise/src/almanac/meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
})
}

Check warning on line 179 in anise/src/almanac/meta.rs

View check run for this annotation

Codecov / codecov/patch

anise/src/almanac/meta.rs#L173-L179

Added lines #L173 - L179 were not covered by tests
})?;
}

Expand Down

0 comments on commit 2a560a1

Please sign in to comment.