55
55
matrix :
56
56
python-version : ["3.12"]
57
57
os : [ubuntu-latest]
58
- # temporarily commented out due to flaky tests
59
- # dependencies: ["core", "core,optional"]
60
- dependencies : ["core"]
58
+ dependencies : ["core,optional"]
61
59
62
60
runs-on : ${{ matrix.os }}
63
61
steps :
@@ -75,19 +73,27 @@ jobs:
75
73
run : |
76
74
git clone https://github.com/marimo-team/marimo.git --depth=1
77
75
cd marimo
76
+ uv venv -p 3.12
78
77
git log
79
78
- name : install-basics
80
79
run : uv pip install --upgrade tox virtualenv setuptools hatch --system
81
80
- name : install-marimo-dev
82
81
run : |
83
82
cd marimo
84
- uv pip install -e ".[dev]" --system
83
+ . .venv/bin/activate
84
+ uv pip install -e ".[dev]"
85
+ which python
85
86
- name : install-narwhals-dev
86
87
run : |
87
- uv pip uninstall narwhals --system
88
- uv pip install -e . --system
88
+ cd marimo
89
+ . .venv/bin/activate
90
+ uv pip uninstall narwhals
91
+ uv pip install -e ./..
89
92
- name : show-deps
90
- run : uv pip freeze
93
+ run : |
94
+ cd marimo
95
+ . .venv/bin/activate
96
+ uv pip freeze
91
97
- name : Create assets directory, copy over index.html
92
98
continue-on-error : true
93
99
run : |
@@ -98,12 +104,13 @@ jobs:
98
104
if : ${{ matrix.dependencies == 'core,optional' }}
99
105
run : |
100
106
cd marimo
101
- hatch run +py=${{ matrix.python-version }} test-optional:test-narwhals
107
+ . .venv/bin/activate
108
+ # make sure that we use the .venv when running tests, so that
109
+ # the local narwhals install is picked up
110
+ sed -i '/^\[tool.hatch.envs.default\]/a path = ".venv"' pyproject.toml
111
+ hatch run python -c "import narwhals; print(narwhals.__file__)"
112
+ hatch run test-optional:test-narwhals
102
113
timeout-minutes : 15
103
- - name : Run typechecks
104
- run : |
105
- cd marimo
106
- hatch run typecheck:check
107
114
108
115
scikit-lego :
109
116
strategy :
0 commit comments