chore(deps): update all dependencies #1250
This file contains hidden or 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: test | |
| on: | |
| merge_group: | |
| branches: | |
| - main | |
| push: | |
| branches: # any integration branch but not tag | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| inputs: | |
| publish: | |
| description: "Publish a pre-release" | |
| required: false | |
| default: "false" | |
| schedule: | |
| - cron: "0 0 * * *" | |
| permissions: | |
| contents: write | |
| id-token: write | |
| packages: write | |
| pull-requests: write | |
| checks: write | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-24.04 | |
| environment: ack # BOT_PAT | |
| steps: | |
| - name: Dump event information | |
| run: | | |
| echo "github.event_name: ${{ github.event_name }}" | |
| echo "github.ref: ${{ github.ref }}" | |
| echo "github.ref_name: ${{ github.ref_name }}" | |
| echo "github.ref_type: ${{ github.ref_type }}" | |
| echo "github.event.action: ${{ github.event.action }}" | |
| echo "github.event.inputs: ${{ github.event.inputs }}" | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.head_ref }} | |
| token: ${{ secrets.BOT_PAT }} | |
| - uses: astral-sh/setup-uv@v7 | |
| - uses: j178/prek-action@v2 | |
| id: prek | |
| with: | |
| extra-args: --config .pre-commit-config.yaml --all-files | |
| continue-on-error: true | |
| - name: Commit & push changes | |
| id: commit-and-push | |
| if: steps.prek.outcome == 'failure' | |
| # git config push.default upstream | |
| run: | | |
| git config user.email "devtools@ansible.com" | |
| git config user.name "Ansible Bot" | |
| git add . | |
| git status | |
| git commit -m "chore[bot]: auto-fix lint errors" | |
| git push | |
| - name: react if linting errors were not fixed | |
| if: steps.commit-and-push.outcome == 'failure' | |
| uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5 | |
| with: | |
| issue-number: ${{ github.event.issue.number }} | |
| body: | | |
| @${{ github.actor }} I tried to fix the linting errors, but it didn't work. Please fix them manually. | |
| See [CI log](https://github.com/${{ github.repository_owner }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details. | |
| test: | |
| needs: | |
| - lint | |
| # tests reusable tox workflow | |
| uses: ./.github/workflows/tox.yml | |
| with: | |
| default_python: "3.13" | |
| max_python: "3.14" | |
| min_python: "3.13" | |
| run_post: echo 'Running post' | |
| run_pre: echo 'Running pre' | |
| other_names: | | |
| docs | |
| lint | |
| py-mise-macos:tox -e py:runner=macos-15;mise=true | |
| py-mise-ubuntu:tox -e py:runner=ubuntu-24.04;mise=true | |
| py313-py314-macos:tox -e py313,py314:runner=macos-15 | |
| platforms: linux | |
| node-version-file: .tool-versions | |
| secrets: inherit | |
| check: # This job does nothing and is only used for the branch protection | |
| if: always() | |
| needs: | |
| - test | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Decide whether the needed jobs succeeded or failed | |
| uses: re-actors/alls-green@release/v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} | |
| push: | |
| if: github.event_name == 'push' | |
| uses: ./.github/workflows/push.yml | |
| secrets: inherit |