From 4c6b50ff9a028ef19f3b39ff717d06ea845c1366 Mon Sep 17 00:00:00 2001 From: sik247 Date: Sat, 13 Apr 2024 17:09:58 -0400 Subject: [PATCH] Add workflow for main.yml --- workflow/main.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 workflow/main.yml diff --git a/workflow/main.yml b/workflow/main.yml new file mode 100644 index 00000000..f9478510 --- /dev/null +++ b/workflow/main.yml @@ -0,0 +1,35 @@ +name: CI/CD Workflow + +on: + pull_request: + types: [closed] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run tests + run: | + pytest + + - name: Deploy + run: | + # Replace this with your deployment commands + echo "Deploying application" \ No newline at end of file