-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
38 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 |
---|---|---|
|
@@ -7,36 +7,36 @@ permissions: | |
contents: read | ||
|
||
jobs: | ||
# go: | ||
# name: Test Go | ||
# strategy: | ||
# matrix: | ||
# runner: [macos-latest, ubuntu-latest, windows-latest] | ||
# runs-on: ${{ matrix.runner }} | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Setup Go | ||
# uses: actions/setup-go@v5 | ||
# with: | ||
# go-version: "1.23" | ||
# check-latest: true | ||
# cache: false | ||
# - name: Install mage | ||
# run: go install github.com/magefile/[email protected] | ||
# - name: Run unit tests | ||
# run: mage test:unit | ||
go: | ||
name: Test Go | ||
strategy: | ||
matrix: | ||
runner: [macos-latest, ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
cache: false | ||
- name: Install mage | ||
run: go install github.com/magefile/[email protected] | ||
- name: Run unit tests | ||
run: mage test:unit | ||
|
||
python: | ||
name: Test Python | ||
strategy: | ||
matrix: | ||
runner: [macos-15] | ||
python: ["3.10"] | ||
runner: [macos-latest, ubuntu-latest, windows-latest] | ||
python: ["3.9", "3.10", "3.11", "3.12"] | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Conda | ||
# if: matrix.runner == 'macos-latest' | ||
if: matrix.runner == 'macos-latest' | ||
run: | | ||
curl -L -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh | ||
chmod +x miniconda.sh | ||
|
@@ -62,16 +62,8 @@ jobs: | |
run: uv venv --python ${{ matrix.python }} | ||
- name: Install our package in editable mode | ||
run: uv sync --all-extras | ||
- name: Build package | ||
run: uv run -m mlflow_go.lib -- . . | ||
- name: run pytest | ||
run: .venv/bin/pytest -sv --debug --log-cli-level=DEBUG --confcutdir=. -k "not [file" .mlflow.repo/tests/tracking/test_model_registry.py ; echo $? | ||
env: | ||
MLFLOW_GO_LIBRARY_PATH: ${{ github.workspace }} | ||
PYTHONLOGGING: DEBUG | ||
continue-on-error: true | ||
- name: cat debug | ||
run: cat pytestdebug.log | ||
# - name: Run integration tests | ||
# run: mage test:python | ||
# if: ${{ !(matrix.python == '3.12' && matrix.runner == 'windows-latest') }} | ||
- name: Run integration tests | ||
run: mage test:python | ||
if: ${{ !(matrix.python == '3.12' && matrix.runner == 'windows-latest') }} | ||
# Temporary workaround for failing tests | ||
continue-on-error: ${{ matrix.runner == 'macos-latest' }} |
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