This provide a standard action to upload nightly updates to the scientific-python nightly channel.
In your Continuous Intregration pipeline once you've built you wheel, you can use the following snippet to upload to our central nightly repository:
jobs:
steps:
...
- name: Upload wheel
uses: scientific-python/upload-nightly-action@main
with:
artifacts_path: dist
anaconda_nightly_upload_token: ${{secrets.UPLOAD_TOKEN}}
To request access to the repository please open and issue on this action
repository, you can
generate a token at https://anaconda.org/<username>/settings/access
... chck
minimum permissions and set it in github tokens secrets.
To test those nightly build, you can use the following command to install from the nightly package.
python -m pip install matplotlib -i https://pypi.org/simple -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --upgrade --pre
Note that second -i
parameter will take priority, it needs to come second if
you want to pull from nightly otherwise it will pull from pypi.
if package in nightly:
try to install from nightly
else:
try to install from pypi