In order to test workflows in a production setting, we have created a utility to do that. Specificaly, if a csv file containing test tasks is provided, then they will be run.
The required column headers is:
- test_id - this is the proteosafe task id to clone
- description - this is the description to be human readable
- regressioncountviews - this is the set of semicolon separated views that we will check for the total number of rows to be present
An example can be found here.
Additionally, we have integrated this utility into github actions but can be called manually in this fashion:
python ./submit_test_job_batch.py --credential_username <username> --credential_password <password> --workflow_task_file test_tasks.tsv
where the utility can be found in testing-utilities.
We rely on the continuous integration from github actions. There are several steps you'll need to accomplish:
- Add a submodule to your repository that has a csv file described above to say which task ids you want to test
- Create a new yml file describing the new CI job for github actions. You can copy one from the .github/workflows folder and obey the naming convention
- Alter the path to the test_tasks.csv to yours
- Commit and push. It should be running once its gets into master.