Skip to content

Commit 03918e3

Browse files
committed
continuous intergration code added
1 parent d1779d8 commit 03918e3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# .github/workflows/ci.yml
2+
name: CI
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2 # Step to check out the code
12+
- name: Set up Python
13+
uses: actions/setup-python@v2 # Step to set up Python on Window
14+
with:
15+
python-version: "3.10.11"
16+
17+
- name: Install dependencies # Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install Flask flake8 pytest
21+
22+
- name: Lint with Flake8
23+
run: flake8 app.py
24+
25+
- name: Run unit tests
26+
run: python test_app.py

0 commit comments

Comments
 (0)