3 Commits

Author SHA1 Message Date
e677309631 only retry on failure
Some checks failed
Python package / lint (push) Successful in 7s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 9s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to TestPyPI (push) Failing after 2s
2024-09-14 17:35:46 -06:00
69505e8371 disable signing
Some checks failed
Python package / lint (push) Successful in 7s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 9s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to TestPyPI (push) Failing after 2s
2024-09-14 17:32:39 -06:00
a5b7c0220b allow earlier python versions
Some checks failed
Python package / lint (push) Successful in 6s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 8s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Successful in 5s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to TestPyPI (push) Successful in 4s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub Release (push) Failing after 13s
2024-09-14 17:31:23 -06:00
3 changed files with 48 additions and 44 deletions

View File

@ -59,52 +59,52 @@ jobs:
with: with:
password: ${{ secrets.PYPI_API_TOKEN }} password: ${{ secrets.PYPI_API_TOKEN }}
github-release: # github-release:
name: >- # name: >-
Sign the Python 🐍 distribution 📦 with Sigstore # Sign the Python 🐍 distribution 📦 with Sigstore
and upload them to GitHub Release # and upload them to GitHub Release
needs: # needs:
- publish-to-pypi # - publish-to-pypi
runs-on: ubuntu-latest # runs-on: ubuntu-latest
permissions: # permissions:
contents: write # IMPORTANT: mandatory for making GitHub Releases # contents: write # IMPORTANT: mandatory for making GitHub Releases
id-token: write # IMPORTANT: mandatory for sigstore # id-token: write # IMPORTANT: mandatory for sigstore
env: # env:
RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd # RUNNER_TOOL_CACHE: /toolcache # https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd
AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824 # AGENT_TOOLSDIRECTORY: /toolcache # https://github.com/actions/setup-python/issues/824
steps: # steps:
- name: Download all the dists # - name: Download all the dists
uses: actions/download-artifact@v3 # uses: actions/download-artifact@v3
with: # with:
name: python-package-distributions # name: python-package-distributions
path: dist/ # path: dist/
- name: Sign the dists with Sigstore # - name: Sign the dists with Sigstore
uses: sigstore/gh-action-sigstore-python@v2.1.1 # uses: sigstore/gh-action-sigstore-python@v2.1.1
with: # with:
inputs: >- # inputs: >-
./dist/*.tar.gz # ./dist/*.tar.gz
./dist/*.whl # ./dist/*.whl
- name: Create GitHub Release # - name: Create GitHub Release
env: # env:
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN: ${{ github.token }}
run: >- # run: >-
gh release create # gh release create
'${{ github.ref_name }}' # '${{ github.ref_name }}'
--repo '${{ github.repository }}' # --repo '${{ github.repository }}'
--notes "" # --notes ""
- name: Upload artifact signatures to GitHub Release # - name: Upload artifact signatures to GitHub Release
env: # env:
GITHUB_TOKEN: ${{ github.token }} # GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI. # # Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the # # `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates. # # sigstore-produced signatures and certificates.
run: >- # run: >-
gh release upload # gh release upload
'${{ github.ref_name }}' dist/** # '${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}' # --repo '${{ github.repository }}'
publish-to-testpypi: publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI name: Publish Python 🐍 distribution 📦 to TestPyPI

View File

@ -96,6 +96,10 @@ def wrap(command: List[str], config: Path, retries: int, version):
with gotify.Gotify(base_url=url, app_token=app_token) as gotify_connection: with gotify.Gotify(base_url=url, app_token=app_token) as gotify_connection:
gotify_connection.create_message(message=message, title=title) gotify_connection.create_message(message=message, title=title)
if not result.returncode:
# only retry on failure
break
sys.exit(result.returncode) sys.exit(result.returncode)

View File

@ -7,7 +7,7 @@ name = "goat_monitor"
authors = [{ name = "Brendan Haines", email = "brendan.haines@gmail.com" }] authors = [{ name = "Brendan Haines", email = "brendan.haines@gmail.com" }]
description = "Remote monitoring of anything" description = "Remote monitoring of anything"
readme = "README.md" readme = "README.md"
requires-python = ">=3.11" # might work with earlier versions, I haven't tried requires-python = ">=3"
# keywords = ["one", "two"] # keywords = ["one", "two"]
license = { text = "MIT License" } license = { text = "MIT License" }
classifiers = ["Programming Language :: Python :: 3"] classifiers = ["Programming Language :: Python :: 3"]