Merge pull request #95 from rubiojr/patch-1
[EVA-2020-02-2.git] / .github / workflows / test.yml
1 name: Python Tests
2
3 on:
4 pull_request:
5 push:
6 branches:
7 - master
8
9 jobs:
10 test:
11 runs-on: ubuntu-latest
12 strategy:
13 matrix:
14 python: [2.7, 3.5, 3.6, 3.7, 3.8]
15
16 steps:
17 - uses: actions/checkout@v2
18 - name: Set up Python ${{ matrix.python }}
19 uses: actions/setup-python@v2
20 with:
21 python-version: ${{ matrix.python }}
22 - name: Install Dependencies
23 run: |
24 python -m pip install --upgrade setuptools tox
25 - name: Run Tests
26 working-directory: library
27 run: |
28 tox -e py
29 - name: Coverage
30 env:
31 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 working-directory: library
33 run: |
34 python -m pip install coveralls
35 coveralls --service=github
36 if: ${{ matrix.python == '3.8' }}
37