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