Skip to content

CivicTechTO/Polis-Accessibility-Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Accessibility-Testing

Set Up Environment

the script depends on the packages:

  • Install Python3 & pip
  • The commands to install through terminal
python3 -m venv venv
source venv/bin/activate

you also need to install libraries gspread before running the script. you can install by these commands:

pip install gspread oauth2client

you also need to install a tool lighthouse before running the script. you can install by these commands:

brew install node
npm install -g lighthouse
lighthouse 'url'

Link to the Spreadsheet

Setup

  • Go to Google Cloud Console
  • Enable the Google Sheets API (default: it's always on)
  • Download the credentials.json file from IAM Page
  • In upload2googlesheets.py, there are 3 config you need to set before running the script
  • CREDENTIALS_FILE: The path to the json file downloaded from Google Cloud Console (IAM page)
  • SHEET_ID: copy it from the url to the Google sheet you are writing to
  • CSV_PATH: the path to the output of convert2CSV.py

Run the Script

python3 upload2googlesheets.py

Automate the Script

crontab -e
0 2 * * * /path/to/venv/bin/python3 /path/to/upload2googlesheets.py

The test has already been automated to run by 2 AM every day

Verify

  • Open the Google Sheet to check the uploaded data.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages