File tree Expand file tree Collapse file tree 4 files changed +161
-13
lines changed Expand file tree Collapse file tree 4 files changed +161
-13
lines changed Original file line number Diff line number Diff line change 35
35
runs-on : ${{ matrix.runner }}
36
36
steps :
37
37
- uses : actions/checkout@v4
38
+ - name : Install Conda
39
+ if : matrix.runner == 'macos-latest'
40
+ run : |
41
+ curl -L -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
42
+ chmod +x miniconda.sh
43
+ ./miniconda.sh -b -p $HOME/miniconda
44
+ echo "$HOME/miniconda/bin" >> $GITHUB_PATH
45
+ export PATH="$HOME/miniconda/bin:$PATH"
46
+ conda --version
38
47
- name : Install uv
39
48
uses : astral-sh/setup-uv@v3
40
49
- name : Set up Python ${{ matrix.python }}
Original file line number Diff line number Diff line change @@ -27,19 +27,30 @@ func runPythonTests(pytestArgs []string) error {
27
27
return nil
28
28
}
29
29
30
- args := []string {
31
- "run" ,
32
- "pytest" ,
30
+ executable := "uv"
31
+ args := []string {"run" , "pytest" }
32
+
33
+ // For some reason uv run on Mac in GitHub Actions can return exit code 1,
34
+ // even when all the tests are passing. That is why we want to run pytest from the virtual directory.
35
+ if runtime .GOOS == "darwin" {
36
+ executable = ".venv/bin/pytest"
37
+ args = []string {}
38
+ }
39
+
40
+ fixedPytestArgs := []string {
33
41
// "-s",
34
- // "--log-cli-level=DEBUG",
42
+ "--log-cli-level=DEBUG" ,
35
43
"--confcutdir=." ,
36
44
"-k" , "not [file" ,
45
+ "-p" , "no:warnings" ,
37
46
}
47
+
48
+ args = append (args , fixedPytestArgs ... )
38
49
args = append (args , pytestArgs ... )
39
50
40
51
environmentVariables := map [string ]string {
41
52
"MLFLOW_GO_LIBRARY_PATH" : libpath ,
42
- // "PYTHONLOGGING": "DEBUG",
53
+ "PYTHONLOGGING" : "DEBUG" ,
43
54
}
44
55
45
56
if runtime .GOOS == "windows" {
@@ -48,7 +59,7 @@ func runPythonTests(pytestArgs []string) error {
48
59
49
60
// Run the tests (currently just the server ones)
50
61
if err := sh .RunWithV (environmentVariables ,
51
- "uv" , args ... ,
62
+ executable , args ... ,
52
63
); err != nil {
53
64
return err
54
65
}
Original file line number Diff line number Diff line change @@ -38,3 +38,11 @@ def test_search_experiments_max_results_validation(store: SqlAlchemyStore):
38
38
match = r"Invalid value 1000000 for parameter 'max_results' supplied" ,
39
39
):
40
40
store .search_experiments (max_results = 1_000_000 )
41
+
42
+
43
+ def test_search_experiments_filter_by_time_attribute (store : SqlAlchemyStore ):
44
+ ()
45
+
46
+
47
+ def test_search_experiments_order_by_time_attribute (store : SqlAlchemyStore ):
48
+ ()
You can’t perform that action at this time.
0 commit comments