Update README.md with citation and installation instructions #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test conda setup | |
on: push | |
jobs: | |
build-n-publish: | |
name: test conda setup | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
os: [macOS-latest, windows-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
# timeout-minutes: 480 | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
# miniconda-version: "latest" | |
# environment variables don’t persist between steps in a workflow, which breaks some things in Conda. | |
# Installing the environment’s packages into the base environment avoids this issue | |
# activate-environment: test | |
python-version: ${{ matrix.python-version }} | |
miniforge-version: latest | |
# mamba-version: "*" | |
# channel-priority: true | |
#channels: conda-forge,defaults | |
auto-activate-base: false | |
activate-environment: anaconda-client-env | |
environment-file: env.yml | |
use-mamba: true | |
#auto-update-conda: true | |
- name: show conda info | |
run: | | |
conda info | |
conda list | |
- name: Install pypa/build | |
shell: bash -l {0} | |
run: | | |
conda install wheel pytest | |
make test | |
make wheel | |
- name: Store the ${{ matrix.os }} wheel | |
uses: actions/upload-artifact@v2 | |
with: | |
name: python-package-distributions | |
path: src/dist/ | |
deploy: | |
name: Publish 🐍📦 to (Test)PyPI | |
needs: | |
- build-n-publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download all the dists | |
uses: actions/download-artifact@v2 | |
with: | |
name: python-package-distributions | |
path: dist/ | |
- name: Publish distribution 📦 to Test PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
packages_dir: dist/ | |
verbose: true | |
skip_existing: true | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository_url: https://test.pypi.org/legacy/ | |
- name: Publish distribution 📦 to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
packages_dir: dist/ | |
verbose: true | |
skip_existing: true | |
password: ${{ secrets.PYPI_API_TOKEN }} |