-
Notifications
You must be signed in to change notification settings - Fork 5
41 lines (41 loc) · 1.16 KB
/
python_lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Python Lint
on:
push:
branches: [main]
paths-ignore: [".teamcity/**"]
tags: ["*"]
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
mypy:
name: Mypy
runs-on: ubuntu-latest
continue-on-error: true
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- 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 python/ribasim
pip install python/ribasim_testmodels
pip install python/ribasim_api
- name: Run mypy on python/ribasim
run: |
mypy --ignore-missing-imports python/ribasim/ribasim
- name: Run mypy on python/ribasim_testmodels
run: |
mypy --ignore-missing-imports python/ribasim_testmodels/ribasim_testmodels
- name: Run mypy on python/ribasim_api
run: |
mypy --ignore-missing-imports python/ribasim_api/ribasim_api