Skip to content

Commit

Permalink
Merge pull request #235 from oscarbenjamin/pr_nightly_wheels
Browse files Browse the repository at this point in the history
maint(ci): upload nightly wheels per SPEC 4
  • Loading branch information
oscarbenjamin authored Oct 23, 2024
2 parents e8fa5b2 + 40185f1 commit 85ecf4b
Showing 1 changed file with 31 additions and 0 deletions.
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

0 comments on commit 85ecf4b

Please sign in to comment.