Skip to content

Add docs to workflow #623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 12, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ensure correct version is used
  • Loading branch information
cvanelteren committed Feb 26, 2025
commit db61f75c247f8da07c7380b032526c6a7b5d4616
27 changes: 17 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,26 +277,33 @@ jobs:

- name: Install packages
run: |
# Get Python version to find matching wheel
PYTHON_VERSION=$(python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
echo "Using Python $PYTHON_VERSION"
# Get Python version
PY_VER=$(python -c "import sys; print(f'{sys.version_info.major}{sys.version_info.minor}')")
echo "Using Python $PY_VER"

# List available wheels
echo "Available wheels:"
ls -la ./wheels/

# Find wheel matching current Python version
MATCHING_WHEEL=$(find ./wheels -name "*-cp${PY_VER}-cp${PY_VER}*" | head -1)

# Install matching wheel for Linux
MATCHING_WHEEL=$(find ./wheels -name "basemap-*-cp3${PYTHON_VERSION/./}*.whl" | head -1)
if [ -n "$MATCHING_WHEEL" ]; then
echo "Installing wheel: $MATCHING_WHEEL"
echo "Installing matching wheel: $MATCHING_WHEEL"
python -m pip install "$MATCHING_WHEEL"
else
echo "No matching wheel found for Python $PYTHON_VERSION. Available wheels:"
ls -la ./wheels/
echo "Falling back to installing any available wheel..."
echo "No matching wheel found for Python $PY_VER. Installing any available wheel..."
python -m pip install ./wheels/*.whl
fi

# Install data packages
echo "Installing data packages..."
echo "Installing data packages:"
ls -la ./data_packages/
python -m pip install ./data_packages/*.whl

# Verify installation
python -c "import mpl_toolkits.basemap; print('Basemap version:', mpl_toolkits.basemap.__version__)"

- name: Install documentation requirements
run: |
cd packages/basemap
Expand Down