Optimized-MDVRP icon indicating copy to clipboard operation
Optimized-MDVRP copied to clipboard

Github Action does not find the uploaded files in the code repo

Open Nikronic opened this issue 6 years ago • 2 comments

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.

Nikronic avatar Oct 04 '19 19:10 Nikronic

@0xaryan Could you help me with this?

Nikronic avatar Oct 14 '19 17:10 Nikronic

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.

avestura avatar Oct 14 '19 17:10 avestura