-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.47 KB
/
python_testing.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
name: Test kecpkg-tools
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 7
fail-fast: False
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8-dev, pypy2, pypy3]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install OS dependencies
run: |
sudo apt-get install gpg --yes
- name: Install basic dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools>=38.6.0 wheel>=0.31.0
pip install -r requirements.txt
- name: Perform Testing
run: |
pip install pytest pytest-runner pytest-cov coverage
python setup.py --quiet clean develop
pytest --cov=kecpkg tests
- name: Upload coverage to coveralls.io
if: matrix.python-version == 3.6
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
pip install coveralls
coveralls
- name: Check docs and distribution
if: matrix.python-version == 3.6
run: |
pip install flake8 pydocstyle check-manifest readme_renderer[md] twine>=2.0.0
flake8 kecpkg --count --show-source --statistics
pydocstyle kecpkg
check-manifest
python setup.py check -m -s
python setup.py bdist_wheel --universal
twine check dist/*