-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (42 loc) · 1.55 KB
/
pull_requests.yml
File metadata and controls
46 lines (42 loc) · 1.55 KB
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
44
45
46
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: commit workflows
on: pull_request
jobs:
unittests:
name: unittests of simset
runs-on: ubuntu-latest
steps:
- name: Checkout github repo
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install -r tests/requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src/simset --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src/simset --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: run pytests
run: pytest tests
simset_simulations:
name: "basic local simulation functionality"
runs-on: ubuntu-latest
steps:
- name: Checkout github repo
uses: actions/checkout@v2
- name: Install simset
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: Test a full init, simulate, process, clean
run: |
simset init
python main.py simulate setup local
python main.py info
./bash_scripts/local_simulation.sh
python main.py info
python main.py process
simset clean --force