Skip to content

TeamCity change in 'iMOD6 / Coupler / iMOD6_collector' project: runne… #763

TeamCity change in 'iMOD6 / Coupler / iMOD6_collector' project: runne…

TeamCity change in 'iMOD6 / Coupler / iMOD6_collector' project: runne… #763

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
black:
name: Black
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-environment: true
environment-file: ./environment.yml
- name: Run black
run: |
black --check .
ruff:
name: Ruff
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-environment: true
environment-file: ./environment.yml
- name: Run ruff
run: |
ruff check --format=github .
mypy:
name: Mypy
runs-on: ubuntu-latest
continue-on-error: true
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-environment: true
environment-file: ./environment.yml
- name: Install python packages
run: |
pip install .
- name: Run mypy (strict) on imod_coupler
run: |
mypy --install-types --non-interactive --ignore-missing-imports --strict imod_coupler
- name: Run mypy on tests
run: |
mypy --install-types --non-interactive --ignore-missing-imports tests