Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update publish and mkdocs workflows #318

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 25 additions & 28 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,33 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.9
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.9

- name: Install poetry
run: make setup
- name: Install poetry
run: make setup

- name: Install poeblix for version freezing
run: poetry self add poeblix@latest

- name: Bump version
run: |
poetry version prerelease
- name: Bump version
run: |
poetry version prerelease

- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Bump version" || echo "No changes to commit"
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Bump version" || echo "No changes to commit"

- name: Push changes
run: git push
- name: Push changes
run: git push

- name: Build with lockfile versions
run: poetry blixbuild --only-lock
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}
- name: Build and publish to pypi
uses: JRubics/poetry[email protected]
with:
python_version: 3.9
pypi_token: ${{ secrets.PYPI_TOKEN }}
allow_poetry_pre_release: "yes"
ignore_dev_requirements: "yes"
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ plugins:
- mkdocstrings:
handlers:
python:
docstring_style: google
# docstring_style: google
options:
# Removed the default filter that excludes private members (that is, members whose names start with a single underscore).
filters: null
Expand Down
Loading