chore(deps): lock file maintenance #1772
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: CI | |
| on: | |
| schedule: | |
| - cron: "0 3 * * *" | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| molecule: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Install the project | |
| run: uv sync | |
| - name: Get changed files | |
| id: changed-files | |
| if: ${{ github.event_name == 'pull_request' }} | |
| uses: tj-actions/changed-files@v47 | |
| - name: Run pre-commit | |
| if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} | |
| run: | | |
| uv run pre-commit run --all-files | |
| - name: Testing roles - pull-request | |
| if: ${{ github.event_name == 'pull_request' }} | |
| run: | | |
| uv run cf-molecule ${{ steps.changed-files.outputs.all_changed_files }} | |
| - name: Testing roles - scheduled | |
| if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }} | |
| run: | | |
| uv run cf-molecule |