From 6eb7f4333a8a33a8613b837e64773c57d9a0d48d Mon Sep 17 00:00:00 2001 From: tharunbirla <95176683+tharunbirla@users.noreply.github.com> Date: Fri, 1 Dec 2023 22:57:59 +0530 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 42 +++++++++++++------------------- 1 file changed, 17 insertions(+), 25 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 2be9e8a..021b809 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -18,28 +18,20 @@ jobs: 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: Set up env - run: python -m venv penv - - - name: Activate env - run: source source penv/bin/activate - - - name: Update pip - run: python -m pip install --upgrade pip - - - name: Install dependencies - run: pip install -r requirements.txt - - - name: Train - run: python train.py - - - name: Classification - run: python train.py + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Run Python commands + run: | + pip install --upgrade pip + python3.8 -m venv penv + source penv/bin/activate + echo "VIRTUAL ENV:" $VIRTUAL_ENV + - name: Installing dependencies + run: pip install -r requirements.txt + - name: Training + run: python train.py + - name: Classifying + run: python train.py