Fix release workflow and prepare 3.10.0 release #33
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: Deploy release | |
on: | |
push: | |
branches: | |
- dev | |
tags-ignore: # exclude tags created by "ci_addons publish_github_release" | |
- 'latest' | |
- 'latest-tmp' | |
pull_request: | |
# push: | |
# tags: # run only on new tags that follow semver MAJOR.MINOR.PATCH | |
# - '[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
deploy-release: | |
name: Deploy release from tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo with submodules | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
fetch-depth: 0 # tags are required for versioneer to determine the version | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install build dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox | |
python -m pip list | |
- name: Run tox tests | |
run: | | |
tox -e py311-upgraded | |
- name: Test | |
run: | | |
git status | |
git diff | |
- name: Build wheel and source distribution | |
run: | | |
tox -e build-py311-upgraded | |
ls -1 dist | |
- name: Test installation from a wheel | |
run: | | |
tox -e wheelinstall --recreate --installpkg dist/*-none-any.whl | |
- name: Test installation from a source distribution | |
run: | | |
tox -e wheelinstall --recreate --installpkg dist/*.tar.gz | |
# - name: Upload wheel and source distributions to PyPI | |
# run: | | |
# python -m pip install twine | |
# ls -1 dist | |
# # twine upload --repository-url https://test.pypi.org/legacy/ -u ${{ secrets.BOT_PYPI_USER }} -p ${{ secrets.BOT_PYPI_PASSWORD }} --skip-existing dist/* | |
# twine upload -u ${{ secrets.BOT_PYPI_USER }} -p ${{ secrets.BOT_PYPI_PASSWORD }} --skip-existing dist/* | |
# - name: Publish wheel and source distributions as a GitHub release | |
# run: | | |
# python -m pip install "githubrelease>=1.5.9" | |
# githubrelease --github-token ${{ secrets.BOT_GITHUB_TOKEN }} release hdmf-dev/hdmf \ | |
# create ${{ github.ref_name }} --name ${{ github.ref_name }} \ | |
# --publish dist/* |