Refactor test structure #46
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
| # yaml-language-server: $schema: https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/github-workflow.json | |
| --- | |
| name: Lint | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: | |
| - opened | |
| - review_requested | |
| - ready_for_review | |
| - auto_merge_enabled | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # install dependencies | |
| - uses: pdm-project/setup-pdm@v4 | |
| with: | |
| cache: true | |
| cache-dependency-path: pylock.toml | |
| - run: pdm install -G:all --lockfile pylock.toml | |
| - uses: jaxxstorm/action-install-gh-release@v1.10.0 | |
| with: | |
| repo: houseabsolute/precious | |
| tag: v0.10.0 | |
| cache: enable | |
| # lint | |
| - run: pdm run precious lint --all | |
| - run: | | |
| set -eoux pipefail | |
| pdm run precious tidy --all | |
| git diff --exit-code | |
| if: success() || failure() |