Merge pull request #95 from rubiojr/patch-1
[EVA-2020-02-2.git] / .github / workflows / test.yml
CommitLineData
8553be8d
PH
1name: Python Tests
2
3on:
4 pull_request:
5 push:
6 branches:
7 - master
8
9jobs:
10 test:
11 runs-on: ubuntu-latest
12 strategy:
13 matrix:
a9a34aa1 14 python: [2.7, 3.5, 3.6, 3.7, 3.8]
8553be8d
PH
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
a9a34aa1 35 coveralls --service=github
8553be8d
PH
36 if: ${{ matrix.python == '3.8' }}
37