Skip to content

v2.4.9

v2.4.9 #18

Workflow file for this run

name: pip-install
on:
release:
types: [published]
jobs:
build_wheels:
name: '${{ matrix.os }}:python-${{ matrix.python-version }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12, macos-13]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
exclude:
- os: ubuntu-22.04
python-version: '3.6'
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: ${{ matrix.python }}
- uses: ilammy/msvc-dev-cmd@v1
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.12.1
- name: Check if allowed operating system (Linux/Mac)
if: runner.os != 'Linux' || runer.os != 'macOS'

Check failure on line 35 in .github/workflows/pip-install.yml

View workflow run for this annotation

GitHub Actions / pip-install

Invalid workflow file

The workflow is not valid. .github/workflows/pip-install.yml (Line: 35, Col: 13): Unrecognized named-value: 'runer'. Located at position 25 within expression: runner.os != 'Linux' || runer.os != 'macOS'
run: |
echo "Cannot build on this operating system."
exit 1
- name: Build wheel
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
CIBW_SKIP='*-manylinux_i686' CIBW_MANYLINUX_X86_64_IMAGE=manylinux2014 python -m cibuildwheel --output-dir wheelhouse
else
python -m cibuildwheel --output-dir wheelhouse
fi
env:
CIBW_BUILD: 'cp3?-*'
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: ${{ matrix.python }}
- name: Build sdist
run: python setup.py sdist
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
# Only push to PyPI if we're on the public repo!
- uses: pypa/gh-action-pypi-publish@release/v1
if: (!github.event.release.prerelease) && github.event_name == 'release' && github.event.action == 'published' && github.repository == 'VirtualPlanetaryLaboratory/vplanet'
with:
user: __token__
password: ${{ secrets.pypi_password }}