We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31084c2 + f3faedb commit 8beff94Copy full SHA for 8beff94
.github/workflows/flask_test.yml
@@ -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