Skip to content

Disable renovate dependency dashboard (#49) #104

Disable renovate dependency dashboard (#49)

Disable renovate dependency dashboard (#49) #104

Workflow file for this run

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 }}