-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.14 KB
/
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
name: Lint and Test
on: [push, pull_request]
jobs:
lint:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.6
id: python_setup
uses: actions/setup-python@v1
with:
python-version: "3.6.10"
- name: Check Out Repository
id: checkout_repository
uses: actions/checkout@v1
with:
submodules: 'recursive'
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v2
- name: Lint
id: python_linting
env:
INPUT_METASTORE_CREDENTIALS: '${{ secrets.METASTORE_CREDENTIALS }}'
run: |
python3 -m pip install -U pip
python3 -m pip install -r requirements.txt
python3 -m pip install flake8
flake8 . --count --config=.flake8 --show-source --statistics
flake8 tests --count --config=.flake8 --show-source --statistics
- name: Test
id: python_test
env:
INPUT_METASTORE_CREDENTIALS: '${{ secrets.METASTORE_CREDENTIALS }}'
run: |
python3 -m unittest tests/test*
python3 -m unittest integration/test*