Skip to content

Update fixtures for CVXPY v1.5.3 and NumPy v2 (#28) #13

Update fixtures for CVXPY v1.5.3 and NumPy v2 (#28)

Update fixtures for CVXPY v1.5.3 and NumPy v2 (#28) #13

Workflow file for this run

name: CD
on:
push:
branches:
- main
tags:
- '*'
release:
types:
- published
workflow_dispatch:
env:
# Many color libraries just need this to be set to any value, but at least
# one distinguishes color depth, where "3" -> "256-bit color".
FORCE_COLOR: 3
jobs:
dist:
name: Build distribution
runs-on: ubuntu-latest
permissions:
attestations: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
# needed to get tags to generate version file
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@v2
with:
attest-build-provenance-github: 'true'
test-publish:
needs: dist
name: Publish to TestPyPI
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
publish:
needs: dist
name: Publish to PyPI
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1