/upload-nightly-action

This action is used to upload nightly builds of your package.

Primary LanguageShellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Nightly upload

This provides a standard GitHub Action to upload nightly builds 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 an issue on this action repository. You can then generate a token at https://anaconda.org/scientific-python-nightly-wheels/settings/access with Allow write access to the API site and Allow uploads to Standard Python repositories permissions and add the token as a secret to your GitHub repository.

Using nightly builds in CI

To test those nightly build, you can use the following command to install from the nightly package.

python -m pip install matplotlib --extra-index-url 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

If you want to install nightly builds within your conda environment, you can specify an extra index in your YML file.

name: test
dependencies:
  - pip
  - pip:
    - --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
    - matplotlib