-
Notifications
You must be signed in to change notification settings - Fork 51
69 lines (63 loc) · 2.04 KB
/
source.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: 📜 Source
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-source
cancel-in-progress: true
jobs:
style:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Non-ASCII Characters
run: .github/workflows/source/hasNonASCII
- name: TABs
run: .github/workflows/source/hasTabs
- name: End-of-Line whitespaces
run: .github/workflows/source/hasEOLwhiteSpace
- name: PEP8
run: |
python3 -m pip install -U flake8
python3 -m flake8 --exclude=thirdParty .
static-analysis:
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: pyflakes
run: |
python3 -m pip install -U pyflakes
python3 -m pyflakes docs/ examples/ test/ setup.py
documentation:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: s-weigand/[email protected]
with:
update-conda: true
conda-channels: conda-forge
- name: Install
run: conda install -c conda-forge doxygen=1.9.6
- name: Doxygen
run: .github/workflows/source/buildDoxygen
urls:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: urls-checker
uses: urlstechie/urlchecker-action@master
with:
# A comma-separated list of file types to cover in the URL checks
file_types: .md,.py,.rst,.hpp,.cpp
# Choose whether to include file with no URLs in the prints.
print_all: false
# The timeout seconds to provide to requests, defaults to 5 seconds
timeout: 5
# How many times to retry a failed request (each is logged, defaults to 1)
retry_count: 3
# A comma separated links to exclude during URL checks
#exclude_urls: url1,url2
# A comma separated patterns to exclude during URL checks
#exclude_patterns: url1,url2
# choose if the force pass or not
force_pass : true