-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.53 KB
/
CoverallsWorker.yml
File metadata and controls
55 lines (44 loc) · 1.53 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
47
48
49
50
51
52
53
54
55
name: Coveralls.IO / Coverage Worker
# ! Just ensure that no matter what parts of codebase are changed.
## Continue to Execute This Worker.
on:
push:
paths:
- '.github/workflows/**'
- 'Externals/Sketch/NodeSketch_SC/**' # ! Required For PRs and General Codebase Change
- 'SmartClassroom/**'
pull_request:
paths:
- '.github/workflows/**'
- 'Externals/Sketch/NodeSketch_SC/**' # ! Required For PRs and General Codebase Change
- 'SmartClassroom/**'
jobs:
CoverageWorker:
name: Project Coverage Test Setup
runs-on: ubuntu-18.04
steps:
- name: Stage 1 | Repository Checkout
uses: actions/checkout@master
- name: Stage 2 | Install Python3 Version 3.8.2
uses: actions/setup-python@v2
with:
python-version: 3.8.2
- name: Stage 3 | Activate MySQL Service in Virtual Environment
run: sudo service mysql start
- name: Stage 3.1 | Setup Empty Database Container
run: |
mysql --host=127.0.0.1 -uroot -proot --execute="CREATE DATABASE sc_db"
- name: Stage 4 | Install Project Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Stage 5 | Initialize Project Database
run: |
cd SmartClassroom
python manage.py makemigrations SCControlSystem
python manage.py migrate
- name: Stage 6 | Code Coverage Test and Result Submission to Coveralls.IO
run: |
cd SmartClassroom
python manage.py test
coveralls