ci(lint): alter to any push, so can initialise/test on dev #1
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
| # This file will lint the specified files/directories. | |
| name: lint | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Install python and dependencies | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.13' | |
| cache: 'pip' | |
| - run: pip install -r requirements.txt | |
| - name: Lint model code | |
| run: | | |
| flake8 ./simulation | |
| pylint ./simulation | |
| - name: Lint tests | |
| run: | | |
| flake8 ./tests | |
| pylint ./tests |