Reputation: 75
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?
Upvotes: 1
Views: 90
Reputation: 1324268
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.
Upvotes: 1