From b2a34d92f5b4ba87ec6c5462c60138dfb145b191 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 14 Jun 2022 10:31:13 +0800 Subject: [PATCH] Create python3.6.8-app.yml --- .github/workflows/python3.6.8-app.yml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/python3.6.8-app.yml diff --git a/.github/workflows/python3.6.8-app.yml b/.github/workflows/python3.6.8-app.yml new file mode 100644 index 000000000..ef4169dbc --- /dev/null +++ b/.github/workflows/python3.6.8-app.yml @@ -0,0 +1,36 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: MW APP + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + #runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Python 3.6.8 + uses: actions/setup-python@v3 + with: + python-version: "3.6.8" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi + - name: Start DEBUG + run: | + gunicorn -c setting.py app:app + python3 task.py &