Skip to content

maint(ci): upload nightly wheels per SPEC 4 #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/buildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,37 @@ jobs:
- run: pip install sympy==${{ matrix.sympy-version }}
- run: python -c 'import sympy; sympy.test(parallel=True)'

# Push nightly wheels to Anaconda scientific-python nightly channel
# https://scientific-python.org/specs/spec-0004/
# https://anaconda.org/scientific-python-nightly-wheels/python-flint
# https://github.com/scientific-python/upload-nightly-action/issues/111

nightly-wheels-upload:
name: Upload Anaconda Scientific Python nightly wheels
needs: [build_wheels]
# Run on push/merge to main
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest

steps:
# Downloads all artifacts
- name: Download release artifacts
uses: actions/download-artifact@v4
with:
path: wheelhouse
merge-multiple: true

- name: Copy the wheels into dist
run: mkdir dist && cp wheelhouse/*.whl dist

- name: Upload wheels
uses: scientific-python/upload-nightly-action@82396a2ed4269ba06c6b2988bb4fd568ef3c3d6b # 0.6.1
with:
artifacts_path: dist
# This token is generated from anaconda.org
# https://github.com/scientific-python/upload-nightly-action/issues/111
anaconda_nightly_upload_token: ${{ secrets.ANACONDA_ORG_UPLOAD_TOKEN }}

# Deploy wheels and sdist to PyPI

pypi_release:
Expand Down
Loading