From 5c61807e365423c87795b7d081ef34a226fd3eab Mon Sep 17 00:00:00 2001 From: imbilalbutt Date: Wed, 20 Dec 2023 12:50:42 +0100 Subject: [PATCH] project-work5: small changes --- .github/workflows/pipeline-cicd.yml | 15 +++++++++------ project/requirements.txt => requirements.txt | 0 2 files changed, 9 insertions(+), 6 deletions(-) rename project/requirements.txt => requirements.txt (100%) diff --git a/.github/workflows/pipeline-cicd.yml b/.github/workflows/pipeline-cicd.yml index 5da04f4813..6e51ff3579 100644 --- a/.github/workflows/pipeline-cicd.yml +++ b/.github/workflows/pipeline-cicd.yml @@ -14,20 +14,23 @@ jobs: steps: - run: echo The CI/CD is about to begin! # Checkout repository - - name: Checkout - uses: actions/checkout@v4 + - name: Step#1- Checkout + uses: actions/checkout@v3 with: path: main # Install python - - name: Step#1- Setup Python 3.11 - uses: actions/setup-python@v4 + - name: Step#2- Setup Python 3.10 + uses: actions/setup-python@v3 with: python-version: '3.11' # Install dependencies - - name: Step#2- Install dependencies - run: pip install -r requirements.txt + - name: Step#3- Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + echo "Environment is set up!" job2_build: runs-on: ubuntu-latest diff --git a/project/requirements.txt b/requirements.txt similarity index 100% rename from project/requirements.txt rename to requirements.txt