forked from obsproject/loganalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.58 KB
/
main.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
name: "Run"
on:
push:
branches: ["*"]
pull_request:
branches: [master]
jobs:
analyze:
name: "01 - Run Analyzer"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Setup
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run basic test
run: |
./loganalyzer.py --url=https://obsproject.com/logs/tGzdILvSRDMSpulg
ubuntu64:
name: "02 - Code Format Check"
runs-on: ubuntu-22.04
if: always()
needs: [analyze]
steps:
- uses: actions/checkout@v4
- name: Setup
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Annotate linting errors
uses: marian-code/python-lint-annotate@ffe24b32a33241b668ab6d34150d7d8e1ad744ec
with:
python-root-list: "."
use-black: false
use-isort: false
use-mypy: false
use-pycodestyle: true
use-pydocstyle: false
use-pylint: false
use-flake8: false
use-vulture: false
extra-pycodestyle-options: "--config=setup.cfg"
python-version: "3.8"
- name: Run pycodestyle
# This is required because the annotate action doesn't trigger a failure
run: |
./check_pep8.sh 1> /dev/null