accept functions which return sequences and not arrays (#42) #24
Workflow file for this run
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: publish | |
on: | |
push: | |
tags: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- run: | | |
python -m pip install --upgrade pip wheel | |
python -m pip install -e . | |
python setup.py sdist bdist_wheel | |
- run: | | |
python -m venv test | |
./test/bin/activate | |
ls dist | |
python -m pip install $(echo dist/jacobi-*.whl)'[test]' | |
python -m pytest | |
- uses: pypa/gh-action-pypi-publish@release/v1 | |
if: contains(github.event.ref, '/tags/') | |
with: | |
user: __token__ | |
password: ${{secrets.PYPI_TOKEN}} |