File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI/CD Pipeline
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+ types : [closed]
11
+
12
+ jobs :
13
+ test :
14
+ name : Run Unit and Functional Tests
15
+ runs-on : ubuntu-latest
16
+
17
+ strategy :
18
+ matrix :
19
+ python-version : [3.7, 3.8, 3.9, 3.10]
20
+
21
+ steps :
22
+ - name : Checkout code
23
+ uses : actions/checkout@v3
24
+
25
+ - name : Set up Python
26
+ uses : actions/setup-python@v4
27
+ with :
28
+ python-version : ${{ matrix.python-version }}
29
+
30
+ - name : Install dependencies
31
+ run : |
32
+ python -m pip install --upgrade pip
33
+ pip install -r requirements.txt
34
+
35
+ - name : Run Unit Tests
36
+ run : |
37
+ python -m unittest discover -s unit_test -p "test_*.py"
38
+
39
+ - name : Run Functional Tests
40
+ run : |
41
+ python -m unittest discover -s functional_tests -p "func_*.py"
You can’t perform that action at this time.
0 commit comments