1
- # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
-
4
- name : Python package
5
-
6
- on :
7
- push :
8
- branches : [ master ]
9
- pull_request :
10
- branches : [ master ]
11
-
12
- jobs :
13
- build :
14
-
15
- runs-on : ubuntu-latest
16
- strategy :
17
- matrix :
18
- python-version : [3.5, 3.6, 3.7, 3.8]
19
-
20
- steps :
21
- - uses : actions/checkout@v2
22
- with :
23
- fetch-depth : 9999
24
- - name : Set up Python ${{ matrix.python-version }}
25
- uses : actions/setup-python@v1
26
- with :
27
- python-version : ${{ matrix.python-version }}
28
- - name : Install dependencies and prepare tests
29
- run : |
30
- set -x
31
- python -m pip install --upgrade pip
32
- python --version; git --version
33
- git submodule update --init --recursive
34
- git fetch --tags
35
-
36
- pip install -r test-requirements.txt
37
- TRAVIS=yes ./init-tests-after-clone.sh
38
-
39
- git config --global user.email "[email protected] "
40
- git config --global user.name "Travis Runner"
41
- # If we rewrite the user's config by accident, we will mess it up
42
- # and cause subsequent tests to fail
43
- cat test/fixtures/.gitconfig >> ~/.gitconfig
44
- - name : Lint with flake8
45
- run : |
46
- set -x
47
- pip install flake8
48
- # stop the build if there are Python syntax errors or undefined names
49
- flake8 --ignore=W293,E265,E266,W503,W504,E731 --count --show-source --statistics
50
- - name : Test with nose
51
- run : |
52
- set -x
53
- pip install nose
54
- nosetests -v --with-coverage
55
- - name : Documentation
56
- run : |
57
- set -x
58
- pip install -r doc/requirements.txt
59
- make -C doc html
1
+ # Workflow disabled
0 commit comments