-
Notifications
You must be signed in to change notification settings - Fork 25
44 lines (35 loc) · 1.13 KB
/
pytest.yaml
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
name: test
on: [pull_request, push]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false # don't cancel other matrix jobs when one fails
matrix:
python-version: ["3.7"]
# Test two environments:
# 1) dependencies with pinned versions from requirements.txt
# 2) 'pip install --upgrade --upgrade-strategy=eager .' to install upgraded
# dependencies from PyPi using version ranges defined within setup.py
env: [
'-r requirements.txt .[all]',
'--upgrade --upgrade-strategy=eager .[all]'
]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install ${{ matrix.env }}
run: |
pip install ${{ matrix.env }}
pip install coveralls wheel
- name: Test with pytest ${{ matrix.env }}
run: |
pytest --cov=bifacialvf
# - name: Coveralls
# run: |
# coveralls --service=github
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}