You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Github Action CI, pass action's Python 3 in test call
The prior patch worked in my local environment, but missed a nuance of
Python 3.8 being available in Github's runner, though 3.6 is the
action's configured version. The Makefile PYTHON3 variable does a
newest-version-first search, so virtualenv wasn't found at runtime.
The name of the action's Python 3 command was found via the home page of
the setup-python action:
https://github.com/marketplace/actions/setup-python
Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
Copy file name to clipboardExpand all lines: Makefile
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@
13
13
14
14
SHELL := /bin/bash
15
15
16
+
PYTHON3 ?= $(shell which python3.9 2>/dev/null || which python3.8 2>/dev/null || which python3.7 2>/dev/null || which python3.6 2>/dev/null || which python3)
0 commit comments