Mf/engine-builder-update #6699
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: PR - pre-commit | |
| on: | |
| workflow_dispatch: # Allows running from actions tab | |
| pull_request: | |
| concurrency: | |
| group: pr-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - uses: ./.github/actions/setup-python/ | |
| - run: uv sync | |
| - name: pre-commit | |
| run: uv run pre-commit run --all-files | |
| env: | |
| SKIP: ruff,ruff-format # In CI run ruff separately to only check, not fix. | |
| - name: ruff check | |
| run: | | |
| uv run ruff check . | |
| uv run ruff format . --check | |
| test: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| - uses: ./.github/actions/setup-python/ | |
| - run: | | |
| sudo mkdir -p /bptr && sudo chown $(whoami):$(whoami) /bptr | |
| sudo mkdir -p /static-bptr && sudo chown $(whoami):$(whoami) /static-bptr | |
| sudo mkdir -p /cache && sudo chown $(whoami):$(whoami) /cache | |
| - run: uv sync | |
| - name: run tests | |
| run: uv run pytest --durations=0 -m 'not integration' --junitxml=report.xml | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| commit: ${{ github.event.workflow_run.head_sha }} | |
| report_paths: "report.xml" | |
| markdown-link-check: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
| with: | |
| use-verbose-mode: "yes" | |
| folder-path: "docs" |