Skip to content

Add environment-based configuration using ENV variable for different … #13

Add environment-based configuration using ENV variable for different …

Add environment-based configuration using ENV variable for different … #13

Workflow file for this run

name: Python Selenium CI/CD
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: pip install -r requirements.txt
- name: Set environment variable (Test)
run: echo "ENV=test" >> $GITHUB_ENV # Set the default environment to 'test'
- name: Run tests
run: |
echo "Running tests in $ENV environment"
pytest --maxfail=1 --disable-warnings -q --html=report.html
- name: Upload test report
uses: actions/upload-artifact@v3
with:
name: pytest-report
path: report.html