Skip to content

Commit 8beff94

Browse files
authored
Merge pull request #1 from ramprasathmk/test
2 parents 31084c2 + f3faedb commit 8beff94

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/flask_test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Flask App Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: ./app/
14+
15+
strategy:
16+
matrix:
17+
python-version: [3.11]
18+
19+
env:
20+
MODE: ${{ secrets.MODE }}
21+
22+
steps:
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: Test App Code
36+
run: python ./main_test.py

0 commit comments

Comments
 (0)