Skip to content

Commit

Permalink
Correct python check
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahlanzrath committed Dec 6, 2024
1 parent 451c2dc commit 11384e0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ jobs:
- name: Check Python and run tests
run: |
PYTHON_VERSION=$(python --version | awk '{print $2}')
echo "Running on Python version: $PYTHON_VERSION"
if [[ "$PYTHON_VERSION" != "${{ matrix.python-version }}.*" ]]; then
echo "Warning: Python version does not match the required version (${matrix.python-version}.*)."
fi
REQUIRED_VERSION="${{ matrix.python-version }}.*"
echo "Running on Python version: $PYTHON_VERSION"
echo "Required Python version: $REQUIRED_VERSION"
if [[ "$PYTHON_VERSION" != "$REQUIRED_VERSION" ]]; then
echo "Warning: Python version does not match the required version ($REQUIRED_VERSION)."
fi
python -m unittest discover -s tests
- name: Install pypa/build
Expand Down

0 comments on commit 11384e0

Please sign in to comment.