From 7b9f28bc3351a2f15276c72e8a4850a1ad1809a9 Mon Sep 17 00:00:00 2001 From: Ayima Okeyeva Date: Mon, 13 Jan 2025 12:20:56 +0100 Subject: [PATCH] Debug virtual environment and pyest installation --- .github/workflows/selenium-tests.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/selenium-tests.yml b/.github/workflows/selenium-tests.yml index 179bfb4..3dc9516 100644 --- a/.github/workflows/selenium-tests.yml +++ b/.github/workflows/selenium-tests.yml @@ -103,19 +103,17 @@ jobs: - name: Debug environment variables run: echo $PATH - - name: Verify pytest installation + - name: Activate virtual environment and verify pytest installation run: | - echo $PATH - which pytest + source venv/bin/activate # Activate the virtual environment + which pytest # Ensure pytest is available from the virtual environment + pytest --version # Check pytest version to verify correct installation - name: Run tests for production env: BASE_URL: ${{ vars.PRODUCTION_URL }} run: | source venv/bin/activate - which pytest - pip show pytest - pip freeze | grep pytest pytest --version python -m pytest --env=production --env_url=${{ vars.PRODUCTION_URL }} tests/test_login.py -sv --headless \ --html=latest_logs/report_production_${{ matrix.browser }}.html \