Skip to content

Commit

Permalink
check that python3 is aliased to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
bendhouseart committed Dec 9, 2024
1 parent 9cd27d4 commit f3dcf46
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-package-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,25 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Check python3 == python${{ matrix.python-version }}
run: |
installed_python=$(python3 --version)
echo "Installed Python: $installed_python"
if [[ "$installed_python" != *"${{ matrix.python-version }}"* ]]; then
echo "Python version mismatch. Expected: ${{ matrix.python-version }}, but got: $installed_python"
exit 1
elif
echo "${{ matrix.python-version }} aliased as python3"
fi
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: |
python${{ matrix.python-version }} -m pip install setuptools
python3 -m pip install setuptools
poetry install --with dev
- name: Package with Poetry
Expand Down

0 comments on commit f3dcf46

Please sign in to comment.