feat: Add environment configurations for base_url and credentials #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
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.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Install Chrome and chromedriver | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y google-chrome-stable | |
sudo apt-get install -y chromedriver | |
- name: Run tests with pytest | |
run: | | |
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 |