Skip to content

ci(dependabot): bump pypa/cibuildwheel from 2.16.5 to 2.17.0 #82

ci(dependabot): bump pypa/cibuildwheel from 2.16.5 to 2.17.0

ci(dependabot): bump pypa/cibuildwheel from 2.16.5 to 2.17.0 #82

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "v*"
pull_request: {}
workflow_dispatch:
jobs:
test:
name: ${{ matrix.platform }} (${{ matrix.python-version }})
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.10", "3.11"]
platform: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[testing]
- name: Test with
run: pytest -v --color=yes --cov=psfmodels --cov-report=xml
- name: Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
build:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"
- name: Build wheels
uses: pypa/[email protected]
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
- name: Build sdist
if: matrix.os == 'ubuntu-20.04'
run: |
python -m pip install build
python -m build --sdist
- uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-20.04'
with:
path: dist/*.tar.gz
upload_pypi:
needs: [build]
runs-on: ubuntu-latest
if: "success() && startsWith(github.ref, 'refs/tags/')"
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_token }}
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true