Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ramprasathmk committed Dec 9, 2024
1 parent 31084c2 commit d131445
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/flask_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Flask App Test

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app/

strategy:
matrix:
python-version: [3.8, 3.9, 3.11]

env:
MODE: ${{ secrets.MODE }}

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ../requirements.txt
- name: Test App Code
run: python ./main_test.py

0 comments on commit d131445

Please sign in to comment.