-
Notifications
You must be signed in to change notification settings - Fork 101
33 lines (31 loc) · 1.07 KB
/
testing-master.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
name: Testing Master
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update Ubuntu
run: sudo apt update
- name: Install Dependencies
run: sudo apt install python3 python3-venv
- name: Create Venv
run: python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && pip install pylint
- name: Install SCALE-Sim
run: source venv/bin/activate && python setup.py install
- name: Linting
run: source venv/bin/activate && python -m pylint --fail-under=7.5 scalesim/
- name: Test 1
run: source venv/bin/activate && cd scalesim && python scale.py
# to test the functionality of weight stationary dataflow
- name: Run script file
run: |
python3 -m venv venv2 && source venv2/bin/activate && pip install -r requirements.txt
chmod +x ./test/scripts/function_test.sh
export PYTHONPATH=. && ./test/scripts/function_test.sh
shell: bash