Skip to content

Commit db44b44

Browse files
committed
specify python version installed for github-action
1 parent 1b7bf1a commit db44b44

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# Install dependencies
6363
- name: Install dependencies
6464
run: |
65-
make install-dev-deps
65+
make install-dev-deps PYTHON_VERSION=${{ matrix.python-version }}
6666
uv cache prune --ci
6767
source .venv/bin/activate
6868
# Runs a single command using the runners shell
@@ -111,7 +111,7 @@ jobs:
111111
${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
112112
- name: Install dependencies
113113
run: |
114-
make install-dev-deps
114+
make install-dev-deps PYTHON_VERSION=${{ matrix.python-version }}
115115
uv cache prune --ci
116116
source .venv/bin/activate
117117
- name: Test PyElastica using pytest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ __pycache__/
77
*.so
88

99
*.swp
10+
.vscode
1011

1112
# Distribution / packaging
1213
.Python

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,24 @@
22
PYTHON := python3
33
PYTHONPATH := `pwd`
44
AUTOFLAKE_ARGS := -r
5+
PYTHON_VERSION :=
56

67
#* Installation
78
.PHONY: install
89
install:
10+
ifdef PYTHON_VERSION
11+
uv sync --python $(PYTHON_VERSION)
12+
else
913
uv sync
14+
endif
1015

1116
.PHONY: install-dev-deps
1217
install-dev-deps:
18+
ifdef PYTHON_VERSION
19+
uv sync --all-groups --all-extras --python $(PYTHON_VERSION)
20+
else
1321
uv sync --all-groups --all-extras
22+
endif
1423

1524

1625
.PHONY: build

0 commit comments

Comments
 (0)