-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 1.01 KB
/
Copy pathcode-validation.yml
File metadata and controls
43 lines (37 loc) · 1.01 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: style
on:
push:
branches: [ "main" ]
pull_request:
paths:
- '.github/workflows/*.yml'
- '**/*.py'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Helps prevent parallel runs of the workflow from overlapping
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Write permissions are not needed for this workflow
permissions: {}
jobs:
style:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install mdb and additional python packages
run: |
pip install -e .[develop]
- name: Run black # check code is compliant with black formatting
run: |
black --check .
- name: Run flake8 # check for flake8 compliance
run: |
flake8 .
- name: Run mypy # static type analysis
run: |
mypy --strict .