-
Notifications
You must be signed in to change notification settings - Fork 26
45 lines (40 loc) · 1.58 KB
/
unittests.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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Pychron Install via EDM with unittest suite
on:
push:
branches: [ dev/dc, dev/dr, hot/dr, hot/dc]
pull_request:
branches: [ dev/dc, dev/dr, hot/dr, hot/dc]
jobs:
build:
name: Pychron Install via EDM (${{ matrix.python-version }}, ${{ matrix.os }})
strategy:
matrix:
os: [ macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Cache EDM packages
uses: actions/cache@v2
with:
path: ~/.cache
key: ${{ runner.os }}--${{ hashFiles('requirements.txt') }}
- name: Setup EDM
uses: enthought/setup-edm-action@v1
with:
edm-version: 3.1.1
- name: Install EDM dependencies
run: >
edm install -y chaco certifi cython envisage future gitpython keyring jinja2 lxml numpy pandas patsy pillow
pip pyface pyparsing pyproj pymysql pyqt5 pytables pyyaml pygments qt Reportlab requests
scipy sqlalchemy traits xlrd xlsxwriter xlwt pytest statsmodels
- name: Install PIP dependencies
run: >
~/.edm/envs/edm/bin/python -m pip install --no-dependencies uncertainties qimage2ndarray peakutils
- name: Test with unittest
run: |
~/.edm/envs/edm/bin/python -m unittest pychron/test_suite.py