I have a Windows machine so I' trying to have Travis CI run my python scripts directly from github. Is it possible to run Travis CI python scripts directly from my github and not from my local repository?
Asked
Active
Viewed 85 times
1 Answers
1
You can integrate TracisCI to your GItHub repo
That way, on each push, your associated TravisCI job will run and execute what you have specified.
Regarding your travis.yaml
, it has to respect the yaml syntax format:
language: python
sudo: enabled
python:
-"3.5" <========= incorrect: must be - "3.5"
See Building a Python Project: you will see a space between -
and "x.y"
version.
Regarding the unittest
error, see "unittest installation error Could not find a version that satisfies the requirement"
unittest
is a standard module, which you don't need to install.

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
I'm having a few difficulties. I wasn't specific before and I'm sorry for that. – Matthew Anderson Oct 03 '17 at 05:19
-
I'm still having trouble after fixing the issue with the space Could not find a version that satisfies the requirement unittest (from versions: ) No matching distribution found for unittest The command "pip install unittest" failed and exited with 1 during – Matthew Anderson Oct 04 '17 at 03:30
-
@MatthewAnderson That is an entirely different question: I have resolved your initial question – VonC Oct 04 '17 at 04:26