Skip to content

Commit

Permalink
Activate virt env in every step
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayima Okeyeva committed Jan 13, 2025
1 parent 8b26b5a commit d75bea1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/selenium-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,14 @@ jobs:
- name: Use shared setup
run: echo "Reusing setup from setup-environments job"

- name: Debug environment variables
run: echo $PATH

- name: Run tests for production
env:
BASE_URL: ${{ vars.PRODUCTION_URL }}
run: |
# source venv/bin/activate # Activate the virtual environment
source venv/bin/activate # Activate the virtual environment
pytest --env=production --env_url=${{ vars.PRODUCTION_URL }} tests/test_login.py -sv --headless \
--html=latest_logs/report_production_${{ matrix.browser }}.html \
--self-contained-html --browser-name=${{ matrix.browser }}
Expand Down Expand Up @@ -112,7 +115,7 @@ jobs:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: |
# source venv/bin/activate # Activate the virtual environment
source venv/bin/activate # Activate the virtual environment
pytest --env=sauce-labs --env_url=${{ vars.SAUCE_LABS_URL }} tests/test_login.py -sv --headless \
--html=latest_logs/report_sauce_labs_${{ matrix.browser }}.html \
--self-contained-html --sauce-labs --browser-name=${{ matrix.browser }}
Expand All @@ -138,7 +141,7 @@ jobs:
env:
BASE_URL: ${{ vars.STAGING_URL }}
run: |
# source venv/bin/activate # Activate the virtual environment
source venv/bin/activate # Activate the virtual environment
pytest --env=staging --env_url=${{ vars.STAGING_URL }} tests/test_login.py -sv --headless \
--html=latest_logs/report_staging_${{ matrix.browser }}.html \
--self-contained-html --browser-name=${{ matrix.browser }}
Expand Down

0 comments on commit d75bea1

Please sign in to comment.