Skip to content

Commit c2ef072

Browse files
committed
Fix CI
Signed-off-by: Sreekanth <prsreekanth920@gmail.com>
1 parent 8a6d6ee commit c2ef072

1 file changed

Lines changed: 9 additions & 21 deletions

File tree

.github/workflows/pynumaflow-lite.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ jobs:
6666
echo "::group::Python ${python_version}"
6767
uv python install "${python_version}"
6868
uv sync --group dev --python "${python_version}"
69-
uv pip install "maturin>=1.14,<2.0"
70-
uv run maturin develop
71-
uv run pytest -v
72-
export PYTHONHOME="$(uv run python -c 'import sys; print(sys.base_prefix)')"
69+
uv pip install --python "${python_version}" "maturin>=1.14,<2.0"
70+
uv run --python "${python_version}" maturin develop
71+
uv run --python "${python_version}" pytest -v
72+
export PYTHONHOME="$(uv run --python "${python_version}" python -c 'import sys; print(sys.base_prefix)')"
7373
cargo test
7474
unset PYTHONHOME
7575
echo "::endgroup::"
@@ -126,41 +126,29 @@ jobs:
126126
- name: Install dependencies
127127
run: |
128128
uv sync --group dev --python ${{ matrix.python-version }}
129-
uv pip install "maturin>=1.14,<2.0"
129+
uv pip install --python ${{ matrix.python-version }} "maturin>=1.14,<2.0"
130130
131131
- name: Install extension
132-
run: uv run maturin develop
132+
run: uv run --python ${{ matrix.python-version }} maturin develop
133133

134134
- name: Run Python tests
135135
if: runner.os != 'Windows'
136-
run: uv run pytest -v
136+
run: uv run --python ${{ matrix.python-version }} pytest -v
137137

138138
- name: Run Rust tests
139139
if: runner.os != 'Windows'
140140
shell: bash
141141
run: |
142142
set -euo pipefail
143-
export PYTHONHOME="$(uv run python -c 'import sys; print(sys.base_prefix)')"
143+
export PYTHONHOME="$(uv run --python ${{ matrix.python-version }} python -c 'import sys; print(sys.base_prefix)')"
144144
cargo test
145145
146-
- name: Run Rust tests
147-
if: runner.os == 'Windows'
148-
shell: pwsh
149-
run: |
150-
$ErrorActionPreference = "Stop"
151-
$env:PYTHONHOME = uv run python -c "import sys; print(sys.base_prefix)"
152-
try {
153-
cargo test
154-
} finally {
155-
Remove-Item Env:PYTHONHOME -ErrorAction SilentlyContinue
156-
}
157-
158146
- name: Run Windows smoke test
159147
if: runner.os == 'Windows'
160148
shell: pwsh
161149
run: |
162150
$ErrorActionPreference = "Stop"
163-
uv run python -c "import pynumaflow_lite; from pynumaflow_lite import mapper; print('pynumaflow-lite import ok')"
151+
uv run --python ${{ matrix.python-version }} python -c "import pynumaflow_lite; from pynumaflow_lite import mapper; print('pynumaflow-lite import ok')"
164152
165153
- name: Build wheel
166154
uses: PyO3/maturin-action@v1

0 commit comments

Comments
 (0)