Skip to content

Commit f3d8236

Browse files
committed
Choose CI Python version with GitHub Action
Signed-off-by: Alex Nelson <[email protected]>
1 parent 47a81ef commit f3d8236

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
- name: Start from clean state
3535
run: make clean
3636
- name: Run tests
37-
run: make check
37+
run: make PYTHON3=python check

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313

1414
SHELL := /bin/bash
1515

16-
PYTHON3 ?= $(shell which python3.8 2>/dev/null || which python3.7 2>/dev/null || which python3.6 2>/dev/null || which python3)
17-
ifeq ($(PYTHON3),)
18-
$(error python3 not found)
19-
endif
16+
PYTHON3 ?= python3
2017

2118
# This recipe intentionally blank.
2219
all:

tests/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ SHELL := /bin/bash
1515

1616
top_srcdir := $(shell cd .. ; pwd)
1717

18-
PYTHON3 ?= $(shell which python3.8 2>/dev/null || which python3.7 2>/dev/null || which python3.6 2>/dev/null || which python3)
19-
ifeq ($(PYTHON3),)
20-
$(error python3 not found)
21-
endif
18+
PYTHON3 ?= python3
2219

2320
all: \
2421
.venv.done.log

0 commit comments

Comments
 (0)