Introduce Wally development containers #257
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: | |
| push: | |
| paths: | |
| - '**/*.py' | |
| - 'bin/*' | |
| - 'sim/vcs/run_vcs' | |
| - '.ruff.toml' | |
| - '!addins/*' | |
| pull_request: | |
| paths: | |
| - '**/*.py' | |
| - 'bin/*' | |
| - 'sim/vcs/run_vcs' | |
| - '.ruff.toml' | |
| - '!addins/*' | |
| jobs: | |
| lint: | |
| name: Lint (Python ${{matrix.version}}) | |
| strategy: | |
| matrix: | |
| version: [39, 313] # Test on oldest and newest versions used in wally-package-install.sh | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set Python version | |
| run: sed -i '/^target-version/c\target-version = "py${{matrix.version}}"' .ruff.toml | |
| - name: Ensure pre-commit checks pass | |
| run: python3 -m pip install pre-commit && pre-commit run --all-files --show-diff-on-failure --color=always |