-
-
Notifications
You must be signed in to change notification settings - Fork 47
36 lines (28 loc) · 750 Bytes
/
lint.yml
File metadata and controls
36 lines (28 loc) · 750 Bytes
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
name: Lint
on: [push, pull_request, workflow_dispatch]
env:
FORCE_COLOR: 1
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: pip
- uses: pre-commit/action@v3.0.1
- name: Install dependencies
run: |
python3 -m pip install -U pip
python3 -m pip install -U tox
- name: Mypy
run: tox -e mypy
- name: Run PSScriptAnalyzer on PowerShell scripts
shell: pwsh
run: |
Invoke-ScriptAnalyzer -Path . -Recurse -Severity ParseError,Error -EnableExit