Skip to content

Commit 13893e5

Browse files
committed
Added github actions
1 parent e3a8774 commit 13893e5

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/.DS_Store

6 KB
Binary file not shown.

.github/workflows/ci_pipeline.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out the code
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.x' # Specify the Python version, e.g., '3.8'
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28+
29+
- name: Run tests
30+
run: |
31+
pytest # or replace with your testing command

0 commit comments

Comments
 (0)