From b0cf951d32b49a2f73bdc6402039f123799070bb Mon Sep 17 00:00:00 2001 From: AtmegaBuzz Date: Sat, 5 Nov 2022 14:54:19 +0530 Subject: [PATCH] Created Workflow on checkout main --- .github/workflows/workflow.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..202aedd --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,24 @@ +name: ReadIt Backend + +on: + push: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: [3.10] + steps: + - uses: actions/checkout@main + - name: Initialize Python 3.10 + uses: actions/setup-python@v1 + with: + python-version: ${{matrix.python-version}} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + python server.py