Skip to content

Commit

Permalink
Set Python 3 version as Make parameter
Browse files Browse the repository at this point in the history
This is to assist with offline testing.

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Nov 13, 2023
1 parent a11701f commit 8e361fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
- name: Rebuild resources
run: make
- name: Run tests
run: make check
run: make PYTHON3=python3 check
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

SHELL := /bin/bash

PYTHON3 ?= python3

all: \
.venv-pre-commit/var/.pre-commit-built.log \
all-shapes \
Expand Down Expand Up @@ -105,7 +107,8 @@ all: \
dependencies/CASE/dependencies/UCO/dependencies/CASE-Utility-SHACL-Inheritance-Reviewer/setup.cfg \
dependencies/CASE/dependencies/UCO/requirements.txt \
requirements.txt
python3 -m venv \
rm -rf venv
$(PYTHON3) -m venv \
venv
source venv/bin/activate \
&& pip install \
Expand All @@ -130,7 +133,7 @@ all: \
rm -rf .venv-pre-commit
test -r .pre-commit-config.yaml \
|| (echo "ERROR:Makefile:pre-commit is expected to install for this repository, but .pre-commit-config.yaml does not seem to exist." >&2 ; exit 1)
python3 -m venv \
$(PYTHON3) -m venv \
.venv-pre-commit
source .venv-pre-commit/bin/activate \
&& pip install \
Expand Down

0 comments on commit 8e361fd

Please sign in to comment.