Skip to content

ci(dependabot): bump actions/download-artifact from 3 to 4 #64

ci(dependabot): bump actions/download-artifact from 3 to 4

ci(dependabot): bump actions/download-artifact from 3 to 4 #64

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@v4
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@v3
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@v4
name: Install Python
with:
python-version: "3.10"
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.1
- uses: actions/upload-artifact@v3
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@v3
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/gh-action-pypi-publish@v1.8.10
with:
user: __token__
password: ${{ secrets.pypi_token }}
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true