From 874b00ea3af7c97cf2a09ed0a066d4854f650c57 Mon Sep 17 00:00:00 2001 From: dormant-user Date: Thu, 27 Jun 2024 00:39:32 -0500 Subject: [PATCH] Support ARM based macOS machines Update installers and test cases Dry run pypi-build for every push Remove cleanup pipeline since cron schedules were removed Update runbook --- .github/workflows/cleanup.yml | 23 --- .github/workflows/python-publish.yml | 17 +- docs/genindex.html | 58 +----- docs/index.html | 255 +++++++++------------------ docs/objects.inv | Bin 8935 -> 8837 bytes docs/searchindex.js | 2 +- docs_gen/conf.py | 1 + jarvis/lib/install_darwin.sh | 8 +- jarvis/lib/installer.py | 6 +- jarvis/main.py | 56 ++++-- jarvis/modules/exceptions.py | 8 + jarvis/modules/models/classes.py | 1 + jarvis/modules/models/models.py | 20 +++ tests/main_test.py | 10 +- 14 files changed, 184 insertions(+), 281 deletions(-) delete mode 100644 .github/workflows/cleanup.yml diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml deleted file mode 100644 index fba354e6..00000000 --- a/.github/workflows/cleanup.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: cleanup-workflows -on: - workflow_dispatch: - push: - branches: - - master - schedule: - - cron: '0 6 * * 0' - # At 6 AM every Sunday - -jobs: - coronation: - runs-on: thevickypedia-lite - permissions: - actions: write - steps: - - name: Delete workflow runs - uses: Mattraks/delete-workflow-runs@v2 - with: - token: ${{ secrets.GIT_TOKEN }} - repository: ${{ github.repository }} - retain_days: 1 - keep_minimum_runs: 3 diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 603bb58c..ad523134 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -2,13 +2,28 @@ name: pypi-publish on: release: - types: [ published ] + types: + - published + push: + branches: + - master workflow_dispatch: jobs: pypi-publisher: runs-on: thevickypedia-lite steps: + - name: Set dry-run + run: | + if [[ "${{ github.event_name }}" == "push" ]]; then + echo "::notice title=DryRun::Setting dry run to true for '${{ github.event_name }}' event" + echo "dry_run=true" >> $GITHUB_ENV + else + echo "::notice title=DryRun::Setting dry run to false for '${{ github.event_name }}' event" + echo "dry_run=false" >> $GITHUB_ENV + fi - uses: thevickypedia/pypi-publisher@v3 env: token: ${{ secrets.PYPI_TOKEN }} + with: + dry-run: ${{ env.dry_run }} diff --git a/docs/genindex.html b/docs/genindex.html index 3dbff86e..e8f7b5d2 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -409,6 +409,8 @@

C

  • connected_to_network() (in module jarvis.modules.utils.support)
  • connection_retry (jarvis.modules.models.classes.EnvConfig attribute) +
  • +
  • constructor() (in module jarvis.main)
  • contacts (jarvis.modules.models.classes.FileIO attribute)
  • @@ -527,6 +529,8 @@

    D

  • delete_todo_items() (in module jarvis.executors.todo_list)
  • delete_webhook() (in module jarvis.modules.telegram.webhook) +
  • +
  • DependencyError
  • detect_lookup_date() (in module jarvis.modules.utils.support)
  • @@ -2184,58 +2188,6 @@

    M

  • MODEL (jarvis.modules.facenet.face.FaceNet attribute)
  • -
  • model_computed_fields (jarvis.api.models.modals.CameraIndexModal attribute) - -
  • model_config (jarvis.modules.models.classes.Thermostat attribute)