Issue #345 part2 imod refactor primod update #1541
Workflow file for this run
This file contains 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: | |
branches: [main] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ruff: | |
name: Ruff | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/[email protected] | |
with: | |
pixi-version: "latest" | |
- name: Prepare pixi | |
run: pixi run --environment=dev install | |
- name: Run ruff format | |
run: | | |
pixi run format-check | |
- name: Run ruff check | |
run: | | |
pixi run ruff | |
mypy: | |
name: Mypy | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/[email protected] | |
with: | |
pixi-version: "latest" | |
- name: Prepare pixi | |
run: pixi run --environment=dev install | |
- name: Run mypy on imodc | |
run: | | |
pixi run mypy-imodc | |
- name: Run mypy on primod | |
run: | | |
pixi run mypy-primod | |
check_packages: | |
name: Check packages | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: prefix-dev/[email protected] | |
with: | |
pixi-version: "latest" | |
- name: Prepare pixi | |
run: pixi run --environment=dev install | |
- name: Check packages | |
run: | | |
pixi run check-package-primod |