-
Notifications
You must be signed in to change notification settings - Fork 7.7k
107 lines (98 loc) · 3.41 KB
/
lint_python.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: lint_python
on:
pull_request:
push:
branches: [test]
jobs:
testing_linux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.10' ] # 3.8, 3.9,
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install pytest
# - run: pip install reorder-python-imports codespell flake8 isort
# - if: matrix.python-version >= 3.6
# run: |
# pip install black
# black --check . || true
# - run: black --diff . || true
# - run: codespell --quiet-level=2 || true # --ignore-words-list="" --skip=""
# - run: flake8 code --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=code/default/gae_proxy/server,code/default/lib/noarch/six.py
# isort and reorder-python-imports are two ways of doing the same thing
# - run: isort --recursive . || true
# - run: reorder-python-imports . || true
- run: pip install -r requirements.txt || true
- shell: bash
env:
XTUNNEL_USER: ${{ secrets.XTUNNEL_USER }}
XTUNNEL_PASS: ${{ secrets.XTUNNEL_PASS }}
PYTHONPATH: ./code/default:./code/default/lib/noarch
run: |
pytest -v code/default || true
- name: Integrate testing
shell: bash
env:
XTUNNEL_USER: ${{ secrets.XTUNNEL_USER }}
XTUNNEL_PASS: ${{ secrets.XTUNNEL_PASS }}
PYTHONPATH: ./code/default:./code/default/lib/noarch
run: |
python code/default/launcher/tests/integrate_testing.py
testing_windows:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.8, '3.10']
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install pytest
- run: pip install -r requirements.txt || true
- shell: bash
env:
XTUNNEL_USER: ${{ secrets.XTUNNEL_USER }}
XTUNNEL_PASS: ${{ secrets.XTUNNEL_PASS }}
PYTHONPATH: ./code/default:./code/default/lib/noarch
run: |
pytest -v code/default || true
- name: Integrate testing
shell: bash
env:
XTUNNEL_USER: ${{ secrets.XTUNNEL_USER }}
XTUNNEL_PASS: ${{ secrets.XTUNNEL_PASS }}
PYTHONPATH: ./code/default:./code/default/lib/noarch
run: |
python code/default/launcher/tests/integrate_testing.py
testing_mac:
runs-on: macos-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: pip install pytest
- run: pip install -r requirements.txt || true
- shell: bash
env:
XTUNNEL_USER: ${{ secrets.XTUNNEL_USER }}
XTUNNEL_PASS: ${{ secrets.XTUNNEL_PASS }}
PYTHONPATH: ./code/default:./code/default/lib/noarch
run: |
pytest -v code/default || true
- name: Integrate testing
shell: bash
env:
XTUNNEL_USER: ${{ secrets.XTUNNEL_USER }}
XTUNNEL_PASS: ${{ secrets.XTUNNEL_PASS }}
PYTHONPATH: ./code/default:./code/default/lib/noarch
run: |
python code/default/launcher/tests/integrate_testing.py