feat: #1136 - [E5-F2-P3] Add latent heat energy release tracking function with tests #2411
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: Linting | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| merge_group: | |
| branches: [ main ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| linter: ["ruff", "mypy"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Python 3.12 | |
| uses: actions/[email protected] | |
| with: | |
| python-version: "3.12" | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install -e ".[dev]" | |
| python -m pip install ${{ matrix.linter }} | |
| - name: Lint with ruff | |
| if: ${{ matrix.linter == 'ruff' }} | |
| run: | | |
| ruff check particula/ | |
| ruff format particula/ --check | |
| - name: Type check with mypy | |
| if: ${{ matrix.linter == 'mypy' }} | |
| run: | | |
| mypy particula/ --ignore-missing-imports |