From de48d9ed54cd1bc63443d4ff9241c4dd8a1096ae Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 25 Jun 2022 22:37:14 +0800 Subject: [PATCH] Create python-app-php.yml --- .github/workflows/python-app-php.yml | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/python-app-php.yml diff --git a/.github/workflows/python-app-php.yml b/.github/workflows/python-app-php.yml new file mode 100644 index 000000000..f35929bce --- /dev/null +++ b/.github/workflows/python-app-php.yml @@ -0,0 +1,37 @@ +# 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 PHP53 + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "dev" ] + +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.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip3 install -r requirements.txt; fi + cd /www/server/mdserver-web/plugins/php && bash install.sh install 53 + - name: Start DEBUG + run: | + gunicorn -c setting.py app:app + python3 task.py &