Fix Homebrew #10
Workflow file for this run
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: "Lint" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [master] | |
| paths-ignore: | |
| - ".gitattributes" | |
| - ".gitignore" | |
| - ".prettierignore" | |
| pull_request: | |
| branches: [master] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: "Lint" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: "Checkout" | |
| uses: actions/checkout@v6 | |
| - name: "Debug event.json" | |
| continue-on-error: true | |
| run: cat "${GITHUB_EVENT_PATH}" | |
| - name: "Debug CTX github" | |
| continue-on-error: true | |
| env: | |
| GITHUB_CTX: ${{ toJSON(github) }} | |
| run: echo "$GITHUB_CTX" | |
| - name: "Debug Environment" | |
| continue-on-error: true | |
| run: env | |
| - name: "Install UV" | |
| uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7.1.6 | |
| - name: "Install Python" | |
| run: | | |
| uv python install | |
| - name: "Install Project" | |
| run: | | |
| uv sync --locked --all-extras --dev | |
| - name: "Debug UV" | |
| continue-on-error: true | |
| run: | | |
| uv python dir | |
| uv python find | |
| uv run python -V | |
| echo "::group::uv tree" | |
| uv tree | |
| echo "::endgroup::" | |
| echo "::group::uv pip list" | |
| uv pip list | |
| echo "::endgroup::" | |
| - name: "astral-sh/ruff" | |
| if: ${{ !cancelled() }} | |
| uses: astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1 | |
| with: | |
| version: latest | |
| - name: "astral-sh/ty" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| uv run ty check -v | |
| - name: "psf/black" | |
| if: ${{ !cancelled() }} | |
| uses: psf/black@stable | |
| - name: "isort" | |
| if: ${{ !cancelled() }} | |
| uses: isort/isort-action@24d8a7a51d33ca7f36c3f23598dafa33f7071326 # v1.1.1 | |
| - name: "mypy" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| uvx toml-run mypy | |
| - name: "bandit" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| uvx toml-run bandit | |
| - name: "validate-pyproject" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| uvx toml-run validate | |
| - name: "tombi" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| uv run tombi lint | |
| - name: "yamllint" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| uvx toml-run yamllint | |
| - name: "prettier" | |
| if: ${{ !cancelled() }} | |
| run: | | |
| echo "::group::Install" | |
| npm install prettier | |
| echo "::endgroup::" | |
| npx prettier --check . | |
| - name: "actionlint" | |
| if: ${{ !cancelled() }} | |
| uses: cssnr/actionlint-action@v1 | |
| with: | |
| shellcheck_opts: -e SC2012 | |
| - name: "pytest" | |
| if: ${{ !cancelled() }} | |
| id: coverage | |
| run: | | |
| uv run coverage run -m pytest | |
| uv run coverage xml | |
| uv run coverage report -m | |
| - name: "codecov" | |
| if: ${{ !cancelled() && steps.coverage.outcome == 'success' }} | |
| uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |