File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Python lint
2+
3+ on :
4+ push :
5+ pull_request :
6+ schedule :
7+ - cron : ' 3 19 * * SUN'
8+
9+ jobs :
10+ build :
11+
12+ name : Python linting
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v2
18+
19+ - name : Set up Python
20+ uses : actions/setup-python@v2
21+ with :
22+ python-version : 3.8
23+
24+ - name : Install dependencies
25+ run : |
26+ python -m pip install --upgrade pip
27+ pip install --upgrade pylint black mypy voluptuous-stubs
28+
29+ - name : Install
30+ run : python setup.py install
31+
32+ - name : Run mypy
33+ run : mypy geoip2 tests
34+
35+ - name : Run Pylint
36+ run : pylint geoip2
37+
38+ - name : Run Black
39+ run : black --check --diff .
Original file line number Diff line number Diff line change 1+ name : Python tests
2+
3+ on :
4+ push :
5+ pull_request :
6+ schedule :
7+ - cron : ' 3 15 * * SUN'
8+
9+ jobs :
10+ build :
11+
12+ strategy :
13+ matrix :
14+ # We don't test on Windows currently as it appears mocket may not
15+ # work there.
16+ platform : [ubuntu-latest, macos-latest]
17+ python-version : [3.6, 3.7, 3.8, 3.9]
18+
19+ name : Python ${{ matrix.python-version }} on ${{ matrix.platform }}
20+ runs-on : ${{ matrix.platform }}
21+
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v2
25+ with :
26+ submodules : true
27+
28+ - name : Set up Python ${{ matrix.python-version }}
29+ uses : actions/setup-python@v2
30+ with :
31+ python-version : ${{ matrix.python-version }}
32+
33+ - name : Install dependencies
34+ run : |
35+ python -m pip install --upgrade pip
36+ pip install tox tox-gh-actions
37+
38+ - name : Test with tox
39+ run : tox
You can’t perform that action at this time.
0 commit comments