-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 924 Bytes
/
linting.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
name: linting
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
linting:
name: py${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip, setuptools, wheel
run: python3 -m pip install -U pip setuptools wheel
- name: Install flopy_mf6_work with runtime dependencies
run: python3 -m pip install .
- name: Install flopy_mf6_work with development dependencies
run: python3 -m pip install .[testing]
- name: Lint Python files
run: python3 -m pylint src/flopy_mf6_work/*