Disable renovate dependency dashboard (#49) #104
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 | |
on: | |
push: | |
env: | |
PYTHON_VERSION: '3.8' | |
jobs: | |
buildAndPublish: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout Code | |
uses: actions/[email protected] | |
- name: Pre-commit | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --hook-stage manual --all-files | |
- name: Run Tests | |
run: | | |
pip install poetry | |
poetry install --with dev | |
. ./.venv/bin/activate | |
pytest . | |
rm -rf .venv | |
- name: Publish to PYPI | |
if: github.ref_name == 'main' | |
run: | | |
pip install poetry | |
poetry config virtualenvs.create false | |
poetry build | |
# basemath is already present as a package (as in math with bases), so use a slightly different name | |
poetry publish --skip-existing -u "__token__" --password "$PYPI_TOKEN" | |
env: | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |