Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 22b4eed

Browse files
garryodcoretl
authored andcommitted
Specify python version when testing cli
1 parent efc9eac commit 22b4eed

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/code.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ jobs:
2525
pipenv-run: lint
2626

2727
wheel:
28-
runs-on: "ubuntu-latest"
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
os: ["ubuntu-latest"]
32+
python: ["3.7"]
33+
34+
runs-on: ${{ matrix.os }}
2935
steps:
3036
- uses: actions/checkout@v2
3137
with:
@@ -46,10 +52,15 @@ jobs:
4652
name: dist
4753
path: dist/*
4854

55+
- name: Install minimum python version
56+
uses: actions/setup-python@v2
57+
with:
58+
python-version: ${{ matrix.python }}
59+
4960
- name: Install wheel in a venv and check cli works
5061
# ${GITHUB_REPOSITORY##*/} is the repo name without org
5162
# Replace this with the cli command if different to the repo name
52-
run: pipx run --spec dist/*.whl ${GITHUB_REPOSITORY##*/} --version
63+
run: pipx run --python $(which python${{ matrix.python }}) --spec dist/*.whl ${GITHUB_REPOSITORY##*/} --version
5364

5465
test:
5566
strategy:

0 commit comments

Comments
 (0)