-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.31 KB
/
typing-check.yml
File metadata and controls
43 lines (37 loc) · 1.31 KB
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
42
43
name: "Pull Request Typing Check"
on:
- pull_request
# Cancels in-progress workflows for a PR when updated
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
# add packages to check typing
package-name: ["geos-geomechanics", "geos-processing", "geos-timehistory", "geos-utils", "geos-trame", "geos-xml-tools", "hdf5-wrapper", "mesh-doctor"]
steps:
- uses: actions/checkout@v4
- uses: mpi4py/setup-mpi@v1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
- name: Install package
# working-directory: ./${{ matrix.package-name }}
run: |
python -m pip install --upgrade pip
python -m pip install mypy ruff types-PyYAML types-paramiko types-pytz
- name: Typing check with mypy
# working-directory: ./${{ matrix.package-name }}
run: |
python -m mypy --config-file ./.mypy.ini --check-untyped-defs ./${{ matrix.package-name }}
- name: Format and linting check with ruff
# working-directory: ./${{ matrix.package-name }}
run: |
python -m ruff check --config .ruff.toml ./${{ matrix.package-name }}