-
Notifications
You must be signed in to change notification settings - Fork 103
47 lines (47 loc) · 1.57 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Testing Master
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
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: Install tkinter
run: sudo apt-get install python3-tk
- name: Linting
run: source venv/bin/activate && python -m pylint --fail-under=7.5 scalesim/
# To test the default SCALE-Sim run
- name: Run default SCALE-Sim configuration
run: |
source venv/bin/activate && cd scalesim && python scale.py
deactivate
# To test the functionality of weight stationary dataflow
- name: Run general script file
run: |
python3 -m venv venv2 && source venv2/bin/activate && pip install -r requirements.txt
chmod +x ./test/general/scripts/function_test.sh
./test/general/scripts/function_test.sh
shell: bash
# To test sparsity functionality
- name: Run sparsity script file
run: |
python3 -m venv venv2 && source venv2/bin/activate && pip install -r requirements.txt
chmod +x ./test/sparsity/scripts/function_test.sh
./test/sparsity/scripts/function_test.sh
shell: bash