forked from JasonGlazer/ashrae-140-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 948 Bytes
/
unit_tests.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
name: Unit Tests
on: [push]
jobs:
unit_tests:
strategy:
matrix:
include:
- os: ubuntu-18.04
python: python3
pip_arg: ""
- os: ubuntu-20.04
python: python3
pip_arg: ""
- os: macos-10.15
python: python3
pip_arg: ""
- os: windows-2019
python: python
pip_arg: --user
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Pip Dependencies
shell: bash
run: pip install ${{ matrix.pip_arg }} -r requirements.txt
- name: Run Tests
shell: bash
run: ${{ matrix.python }} setup.py nosetests
- name: Upload Coverage Results
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github