Prepare new alpha version #11
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: Upload Python Package | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel hatch | |
hatch env create | |
- name: Make sure we didn't forget anything in pre-commit | |
run: | | |
hatch run pre-commit run --all | |
- name: Test with pytest | |
run: | | |
hatch run pytest | |
- name: Build and publish | |
env: | |
HATCH_INDEX_USER: ${{ secrets.PYPI_USERNAME }} | |
HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }} | |
run: | | |
hatch build | |
hatch publish --no-prompt |