test new flow #10
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: Build and Publish to Test PyPI | |
on: push | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-latest | |
environment: | |
name: test-release-pypi | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Build release distributions | |
run: | | |
python -m pip install --upgrade pip build | |
python -m build | |
- name: Publish package distribution to TestPyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
- name: Install package from TestPyPI | |
run: | | |
python -m pip install --index-url https://test.pypi.org/simple/ awpy |