Skip to content

Commit 029eb02

Browse files
committed
set pip in ci
1 parent e22abe8 commit 029eb02

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/lint.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
python-version: "3.11"
2222

2323
- name: Install dependencies
24-
run: UV=`which uv` && make install
24+
run: UV=`which uv` && PIP=`which pip` && make install
2525

2626
- name: Run pylint
2727
run: |

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
python-version: ${{ matrix.python-version }}
2626

2727
- name: Install dependencies
28-
run: UV=`which uv` && make install
28+
run: UV=`which uv` && PIP=`which pip` && make install
2929

3030
- name: Test with python ${{ matrix.python-version }}
3131
run: uv run --frozen pytest ./tests --cov-branch --cov-report term --cov-fail-under=80 --cov=wurzel/

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
SRC_DIR = ./wurzel
66
TEST_DIR= ./tests
77
VENV = .venv
8-
UV=?$(VENV)/bin/uv
8+
UV?=$(VENV)/bin/uv
99
PY=$(VENV)/bin/python
10+
PIP?=$(VENV)/bin/pip
1011
build: install
1112
$(PY) -m build .
1213

@@ -17,7 +18,7 @@ $(VENV)/touchfile: pyproject.toml $(UV)
1718
$(PY):
1819
python3.11 -m venv $(VENV)
1920
$(UV): $(PY)
20-
$(VENV)/bin/pip install uv
21+
$(PIP) install uv
2122
install: $(VENV)/touchfile
2223

2324
test: install

0 commit comments

Comments
 (0)