This Project is for running the InterProfessional Education(IPE) courses data for outputting the Learning outcomes and there by helping the IPE units and partnering units like Pharmacy, Social Work etc for data informed decision making. This process runs after end of term primarly for Fall/Winter/Spring-Summer terms.
- Configurations before running the script
- Create the folder structure
secrets/ipe/
inside home directory. create.env
file and place it. copy the content fromconfig/env_sample.txt
. Change as needed - Google Service account JSON file is needed to read the google spreadsheet content. Add
ipe_gserviceaccount.json
insidesecrets/ipe/
. You can find this file Dropbox - The Google service account email address need to be added to the google sheets with
Editor
Permission. - pytest is used for running test.
- Create the folder structure
- Docker run
- Building the project
docker compose build
- Running the IPE job
docker compose up job
- Running the test
docker compose up test
- Running both job abd test
docker compose up
. Note: I would rather avoid this step since it will run both and while reviewing and testing it will be confusing
- Building the project
- Script Command-line Run
- Set environmental variable as
IPE_ENV_FILE=/path/to/dot.envfile
in your shell configuration file - Main Process
python3 ipe-start.py
. This is useful for debugging. - Pytest:
pytest
- Set environmental variable as
- Go to the
Run and Debug
tab in the left navgation, mark a break point in code, click the play button and it should stop at the breakpoint. - The VScode debug configiration is configured to run current file. Always you should be at
ipe-start.py
when you start the run
- This command will check all the python files
mypy ipe-start.py
- Currently gspread library don't have type as part of the library, nor python stubs written separately in typeshed. Currently simply ignoring then in the
mypy.ini
- Note: Not configured to run via docker run