- Expected output is ['OK', 'OK', 'OK', 'OK', 'OK', 'failed', 'OK', 'OK', 'skipped'] for end list
- The program mentions when task is skipped
- The program has to be run in Unix environment, as on Windows it provides the following result :
- ['failed', 'OK', 'skipped', 'OK', 'OK', 'failed', 'failed', 'OK', 'skipped']
- Unpack secret-interview-test.zip first
- Create a new repository on GitHub with an empty .gitignore file
- Drag and drop the all the files within the "secret-interview-test" into WEB UI of GitHub's new repository
- Go to GitHub - Actions
- Click on "set up a workflow yourself"
- Copy-paste the "main.yml"'s contents that is in "secret-interview-test//.github//workflows" into the text editor in webUI from your own PC with notepad/alternatives Above is done because .github folder is ignored
- Verify output after program is ran by clicking on checkmark next to "N commit"
- There is "Run main file" that runs use case program. Within there are the outputs from during the test run
- There is "Run pytest file" that tests the code
- If all above fails, here is the link to what it should look like
- Let me know if I should remove it/make it hidden for integrity reasons
Ensure you have python 3.8+ installed. Complete below tasks for
$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
$ python get-pip.py
$ pip install -r requirements.txt
$ python main.py
$ python -m pytest
- main file is general execution of program
- pytest runs unit tests to verify integrity and validity of project