Skip to content

Commit

Permalink
allow make to use selected python version
Browse files Browse the repository at this point in the history
  • Loading branch information
time4tea committed Dec 29, 2023
1 parent 11ae7f8 commit 312df7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
make venv req
- name: Test with pytest
run: |
make ci
PYTHONVERSION=${{matrix.version}} make ci
- name: Upload build artefacts
if: failure()
uses: actions/upload-artifact@v2
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ BIN=venv/bin

default: test

PYTHON=python3.11
PYTHONVERSION ?=3.11

PYTHON=python$(PYTHONVERSION)

.PHONY: clean
clean:
Expand All @@ -19,6 +21,7 @@ test:

.PHONY: ci
ci:
@echo python version is $(PYTHONVERSION)
CI=true PYTHONPATH=. $(BIN)/pytest --capture sys --show-capture all tests

.PHONY: check
Expand Down

0 comments on commit 312df7d

Please sign in to comment.