Skip to content

Updating CHANGES and VERSION. #210

Updating CHANGES and VERSION.

Updating CHANGES and VERSION. #210

Workflow file for this run

name: Build Python wheels
# For reference, see https://cibuildwheel.readthedocs.io/en/1.x/setup/
on:
pull_request:
push:
branches: [main]
tags:
- 'v*'
- '!v*-dev'
jobs:
build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build SDist
run: python ./setup.py sdist
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
check:
name: Run tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install .[dev]
- run: pytest
upload_all:
needs: [build_sdist, check]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
# The above jobs yield a combined artifacts archive
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}