We require a tool that can automate post production deployment checks.
git clone git@github.com:getsmarter/page_checker.git
cd page_checkerCreate a local configuration file:
cp etc/config_local_template.py etc/config_local.pySet parameters in the new, un-versioned, file. In most cases, you will only need to define the following variables to config_local.py:
- PC_USERNAME
- PC_PASSWORD
Run docker compose up or down to run/stop the container. I.e. to start container:
docker-compose upInstall Firefox - see the download page.
Install Firefox's webdriver:
# macOS
brew install geckodriver
# Debian/Ubuntu
sudo apt-get update
sudo apt-get install firefox-geckodriverInstall Python 3:
# macOS
brew install python@3
# Debian/Ubuntu
sudo apt-get update
sudo apt-get install python3Create a virtual environment in the repo. Activate it whenever install packages into it or running this project.
python3 -m venv venv
source venv/bin/activateInstall production dependencies:
pip install -r requirements.txtOr, install prod and dev dependencies at once:
pip install -r requirements-dev.txtCreate a local configuration file:
cp etc/config_local_template.py etc/config_local.pySet parameters in the new, un-versioned, file. In most cases, you will only need to define the following variables to config_local.py:
- PC_USERNAME
- PC_PASSWORD
Run commands inside the virtual environment.
The project entrypoint is page_checker.py.
Run pylint before submitting a PR.