pinttrs version 24.1.0 #10
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: Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
release-pypi: | |
name: Release to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rye | |
uses: eifinger/setup-rye@v1 | |
- name: Build wheels | |
run: | | |
rye build | |
- name: Test build | |
run: | | |
python3 -m venv fresh_env | |
. fresh_env/bin/activate | |
pip install dist/*.whl | |
fresh_env/bin/python -c "import pinttr; print(pinttr.__version__)" | |
fresh_env/bin/python -c "import pinttrs; print(pinttrs.__version__)" | |
- name: Upload to PyPI | |
run: | | |
pdm publish --no-build -r pypi --username __token__ --password ${{ secrets.PYPI_TOKEN }} |