diff --git a/.github/workflows/flask_test.yml b/.github/workflows/flask_test.yml new file mode 100644 index 0000000..66d2753 --- /dev/null +++ b/.github/workflows/flask_test.yml @@ -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 \ No newline at end of file