Optimized-MDVRP
Optimized-MDVRP copied to clipboard
Github Action does not find the uploaded files in the code repo
When I wanted to test F.single_data_loader, CI failed due to file not found exception while the tests on local system runs successfully. (Pytest)
Actually, I really do not know what is difference between tests on local or remote virtual machine. This issue may occur because of some other ways of cloning repo into virtual machine which may has been used by the template of CI I am using.
@0xaryan Could you help me with this?
Hi Nikronic
I see that your code is running on Ubuntu Linux in the github actions work flow config file.
Try to use python's standard library functions for fetching data from relative path instead of using ../data/somefile. (instead use: os.path.join() and os.getcwd())
More info here: https://stackoverflow.com/questions/45373648/relative-path-not-working-in-python
I hope this can solve your problem.