Skip to content

Commit

Permalink
python version debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
oulap committed Sep 24, 2024
1 parent 003fb8e commit 20f224d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
run: |
PYTHON_VERSION_STR=$(python -c "import sys; print(f'cp{sys.version_info.major}{sys.version_info.minor}')")
echo $PYTHON_VERSION_STR
echo "PYTHON_VERSION_STR=${PYTHON_VERSION_STR}" >> $GITHUB_ENV
- name: Checkout submodules
run: |
Expand Down Expand Up @@ -63,8 +67,6 @@ jobs:
- name: Build samseg for python version ${{ matrix.python-version }} and test
run: |
# cpython version string representation, e.g., 3.11 -> cp311
PYTHON_VERSION_STR=$(python -c "import sys; print(f'cp{sys.version_info.major}{sys.version_info.minor}')")
echo "PYTHON_VERSION_STR=${PYTHON_VERSION_STR}" >> $GITHUB_ENV
python -m pip install cibuildwheel
python -m cibuildwheel --output-dir ./dist
Expand Down

0 comments on commit 20f224d

Please sign in to comment.