Static Lint #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
| name: Static Lint | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| name: CI/CD | |
| runs-on: [ self-hosted, generic-linux ] | |
| container: | |
| image: docker.artifactory.rbx.com/python:3.10.15-alpine3.20 | |
| steps: | |
| - uses: actions/checkout@v1 #v2 would need git config --global --add safe.directory $(realpath .) | |
| with: | |
| fetch-depth: 1 # only the current commit | |
| # install | |
| - name: Install dependencies | |
| run: | | |
| mkdir -p $HOME/.local/bin | |
| python3 -m pip install --user ruff==0.9.10 | |
| # linting | |
| - name: Run ruff | |
| run: | | |
| $HOME/.local/bin/ruff check . --select I001 | |
| - name: Run ruff format | |
| run: | | |
| $HOME/.local/bin/ruff format --check . |