I’m new to this community, so please be kind if I make any mistake.
I’m working on a python project which takes a file as an argument. Now that the project is growing larger, Automating unit testing would help run the project efficiently.
Goal is to get a unit test results on Github by travis CI everytime a code is pushed. (even better if it can be triggered at a code review request)
Syntax of project execution - python3 main.py -f input.file
Can travis CI support input file as a parameter?
Can I run multiple instances of the unit test where it runs main.py instances on 10 different files?
Where should I be hosting the input files?
If you want to run them each in their own, seperate “job”, use environment variables. This way, if one fails, only that fails, and the others will still be run. For example: