Skip to content

Commit

Permalink
Publish macOS wheels on PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinpfoertner committed Aug 17, 2021
1 parent a7eda79 commit 946c3b0
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,45 @@ jobs:
run: |
pip install --upgrade twine
twine upload dist/*-manylinux*.whl
deploy-macos:
strategy:
matrix:
macos-version: ['macos-11']
python-version: ['3.6', '3.7', '3.8', '3.9']

runs-on: ${{ matrix.macos-version }}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # This is needed so that all tags are loaded (important for setuptools_scm)
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Build and install package
run: |
python -m pip install -e .[testing,linting]
- name: Linting
run: |
pylint src/cholupdates
if: always()
- name: Run tests
run: |
pytest
if: always()
- name: Build package using `build`
run: |
pip install --upgrade build
python -m build
- name: Publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install --upgrade twine
twine upload dist/*-macos*.whl

0 comments on commit 946c3b0

Please sign in to comment.