Introduction
In my project, I want to run Python from GitHub workflow, but when I run it, it shows an error.
Showed error:
Run python ../main.py
python: can't open file '../main.py': [Errno 2] No such file or directory
Error: Process completed with exit code 2.
*before I test main.py instead of ../main.py
But he shows a another error :
Run python main.py
Traceback (most recent call last):
Valeur out : 311
File "main.py", line 9, in <module>
lineSplit = open("log", "r").readline().split(' ')
FileNotFoundError: [Errno 2] No such file or directory: 'log'
Error: Process completed with exit code 1.
The link to the project
https://github.com/MathieuSoysal/bot-area
Someone have the solution to this problem ?
logfile to your project.logfile as well as a username and a password separated from space informed on the first line of the file. Example for the log file: github.com/GuillaumeFalourd/bot-area/blob/main/log . Then, the workflow will return an error if the username and password are wrong: github.com/GuillaumeFalourd/bot-area/runs/…