-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1.15 KB
/
unit-test-checks.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: unit + script tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '5 4 * * 0'
jobs:
local-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up miniconda
uses: goanpeca/setup-miniconda@v1
with:
activate-environment: ''
# - name: Setup Debug Session
# uses: P3TERX/debugger-action@master
- name: Setup our environment
shell: bash -l {0}
run: |
conda env list
python --version
source setup/setup.sh
- name: Run unit tests
shell: bash -l {0}
run: |
conda activate emsim
PYTHONPATH=$PYTHONPATH:bin python -m unittest test/unit/*.py
- name: Run script tests
shell: bash -l {0}
run: |
conda activate emsim
python -m unittest test/scripts/*.py