Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tharunbirla authored Dec 1, 2023
1 parent a8937be commit 6eb7f43
Showing 1 changed file with 17 additions and 25 deletions.
42 changes: 17 additions & 25 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6eb7f43

Please sign in to comment.