-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: platform specific prefixes in S3 URIs and MLflow tests
Addresses an issue where S3 key prefixes followed the platform's path conventions causing tests that validate S3 URIs to fail. The fix is to normalize S3 prefixes to follow POSIX path conventions using Path.as_posix() from pathlib. Adds a github action for unit tests on a windows-2022 image. test_mlflow.py was updated to use pathlib instead of os.path to fix cross-platform issues with the tests.
- Loading branch information
1 parent
f703620
commit 3f56807
Showing
3 changed files
with
18 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,9 +68,10 @@ jobs: | |
run: python3 -m tox run -e ${{ matrix.tox-testenv }} | ||
|
||
unit-tests: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-20.04", "windows-2022"] | ||
python-version: ["3.9", "3.10"] | ||
tox-testenv: | ||
- "clean,py39-pytest-cov,report" | ||
|
@@ -91,6 +92,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
|
||
- name: install English words dictionary | ||
if: ${{ contains(matrix.os, 'ubuntu') }} | ||
run: sudo apt install -y wamerican | ||
|
||
- name: setup python ${{ matrix.python-version }} | ||
|
@@ -106,6 +108,7 @@ jobs: | |
- name: get pip cache dir | ||
id: pip-cache | ||
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: cache dependencies | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters