Skip to content

Commit

Permalink
Debugging virt env
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayima Okeyeva committed Jan 13, 2025
1 parent 1b5e82e commit 97098cf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/selenium-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ jobs:
run: |
python -m venv venv || { echo "Failed to create venv"; exit 1; }
ls -al venv # Debugging step to confirm creation
# On Windows use `venv\Scripts\activate`
# On Linux/macOS use `source venv/bin/activate`
source venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
echo PATH=/home/runner/work/${{ github.repository }}/venv/bin:$PATH >> $GITHUB_ENV
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest-html
Expand All @@ -50,7 +47,7 @@ jobs:
- name: Install required dependencies
run: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get upgrade
# Install Chrome (needed for Chrome tests)
- name: Install Chrome
Expand Down Expand Up @@ -91,7 +88,6 @@ jobs:
env:
BASE_URL: ${{ vars.PRODUCTION_URL }}
run: |
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 @@ -120,7 +116,6 @@ jobs:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: |
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 @@ -146,7 +141,6 @@ jobs:
env:
BASE_URL: ${{ vars.STAGING_URL }}
run: |
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 97098cf

Please sign in to comment.