ci: remove windows from test pipeline #7
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 to PyPI | |
on: | |
push: | |
branches: ["*"] | |
tags: ["v*.*.*"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
shell: bash | |
- name: Configure Poetry to use virtual environment inside the project | |
run: poetry config virtualenvs.in-project true | |
- name: Install dependencies | |
run: poetry install | |
- name: Run Tests | |
run: poetry run pytest | |
- name: Build the package | |
run: poetry build | |
- name: Publish to PyPI (release only) | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: poetry publish --no-interaction --username __token__ --password ${{ secrets.PYPI_TOKEN }} |