Skip to content

Commit 375ccd7

Browse files
committed
github actions workflow
1 parent cd55a06 commit 375ccd7

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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"

0 commit comments

Comments
 (0)