File tree Expand file tree Collapse file tree 4 files changed +629
-0
lines changed Expand file tree Collapse file tree 4 files changed +629
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Linting and MyPy (Pelican)
2
+ on :
3
+ push :
4
+ paths-ignore :
5
+ - ' **/pelican-action-test.yml'
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ test :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ with :
14
+ persist-credentials : false
15
+ - name : Install dependencies
16
+ run : |
17
+ pip list
18
+ cd pelican
19
+ pip install -r requirements.txt --no-deps # explicit only
20
+ pip install mypy
21
+ pip install types-PyYAML
22
+ pip install types-requests
23
+ pip install types-beautifulsoup4
24
+ pip install types-markdown
25
+ pip install pylint
26
+ pip list
27
+ - name : Type testing with mypy
28
+ run : |
29
+ cd pelican
30
+ mypy --cache-dir /tmp/ --install-types
31
+ mypy --cache-dir /tmp/ --ignore-missing-imports .
32
+ - name : Testing with pylint
33
+ if : always()
34
+ run : |
35
+ cd pelican
36
+ pylint *.py */*.py */*/*.py
Original file line number Diff line number Diff line change 1
1
name : Test the Pelican build action
2
2
on :
3
3
push :
4
+ paths-ignore :
5
+ - ' **/linting.yml'
4
6
workflow_dispatch :
5
7
jobs :
6
8
pelican-test :
You can’t perform that action at this time.
0 commit comments