Skip to content

Commit b006ea1

Browse files
committed
Allow passing in the Python version for 'make .venv'
1 parent 8ef5bbc commit b006ea1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
- name: Install dependencies
3333
run: |
3434
make .venv
35+
env:
36+
PYTHON_VERSION: ${{ matrix.python-version }}
3537

3638
- name: Run checks
3739
run: |

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
check: test lint mypy audit deadcode
44
fix: format fixlint
55

6+
PYTHON_VERSION ?= 3.10
7+
68
.venv:
79
pip install uv
8-
uv venv -p 3.10 .venv
10+
uv venv -p $(PYTHON_VERSION) .venv
911
uv pip sync requirements-dev.txt
1012
uv pip install -e .[test]
1113

0 commit comments

Comments
 (0)