TokaMaker: Add subroutines for computing local shear and NT H-mode ac… #127
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 OFT | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v5 | |
| - name: Install prerequisites | |
| run: | | |
| python3 -m venv ${{ github.workspace }}/oft_venv | |
| echo "source ${{ github.workspace }}/oft_venv/bin/activate" > ${{ github.workspace }}/setup_env.sh | |
| source ${{ github.workspace }}/setup_env.sh | |
| pip install "ruff<0.16.0" | |
| - name: Check stack entries | |
| working-directory: src | |
| run: | | |
| source ${{ github.workspace }}/setup_env.sh | |
| python utilities/generate_stack.py -l | |
| - name: Check python with ruff | |
| working-directory: src/python | |
| run: | | |
| source ${{ github.workspace }}/setup_env.sh | |
| python -m ruff check |