From acbf40dd10718624cf749589ee10c692b0dcf125 Mon Sep 17 00:00:00 2001 From: Malinhara Date: Mon, 8 Jul 2024 11:24:45 +0530 Subject: [PATCH] last --- .github/workflows/main.yml | 51 +++++++++++++++++++------------------- {venv => test}/script.py | 0 2 files changed, 26 insertions(+), 25 deletions(-) rename {venv => test}/script.py (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 899eaf3..f536376 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,29 +8,30 @@ on: jobs: build-and-test: runs-on: ubuntu-latest + steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.12 - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - - name: Install pytest - run: | - python -m pip install pytest - - - name: Run tests and capture output - run: | - pytest /venv/script.py > test_output.txt - cat test_output.txt # Print the captured output - - - name: Print part (test) - run: | - echo "test" + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.9 # Adjust Python version as needed + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Install pytest + run: | + python -m pip install pytest + + - name: Run tests and capture output + run: | + pytest test/ > test_output.txt + cat test_output.txt # Print the captured output + + - name: Print part (test) + run: | + echo "Printing part (test)" diff --git a/venv/script.py b/test/script.py similarity index 100% rename from venv/script.py rename to test/script.py