-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Travis CI and upstream nox #235
Comments
I see wntrblm/nox#233 is roughly about this. |
* Add Travis Windows Travis sets environment variable TRAVIS_PYTHON_VERSION which can be used to refine the sessions run in each job. Add a Windows job on Travis CI for Python 3.7, but not running docs due to Unicode in docs/index.md which Windows UTF-8 doesnt handle. Related to #124 Related to #235 * Skip symlink test failing on Windows Related to #124
I updated the travis file to run one session at a time, similar to how nox achieves it. Regarding the failures to run nox with the latest version, yes that is the case. I had to fork nox and update it. You can see the version of nox that pipx uses in the travis file: IIRC I used the tox-venv package (https://github.com/tox-dev/tox-venv/blob/master/src/tox_venv/hooks.py) to resolve external Python's in my nox fork. My branch is at https://github.com/cs01/nox/tree/cs01/nox-fork-for-pipx. The nox issue tracking this is wntrblm/nox#233. I tried adding it in an earlier pull request to nox (wntrblm/nox#231), but it was scope-creeping a little too much so we held off. It might be worth it to revisit now. |
At the time you made the PR, nox would run all sessions for all available Python versions, which would only be one version at a time. If it can't find the Python version it skips that session without error. It looks like you did for Windows but not Linux, unless I am missing something?
I am not following. Sorry if I messed something up. Is there something I need to do/undo? |
I solved it for all Travis platforms. See 3.6 vs 3.7 linux jobs on https://travis-ci.org/pipxproject/pipx/builds/597732575
The |
pipx has moved to github workflows, if there is still a problem with nox on github, please file another issue. |
The travis CI config is running two jobs, for Python 3.6 and 3.7, but then each of those runs tests on both 3.6 and 3.7.
Each Travis environment should be running tests for only that version.
fwiw, I am a maintainer of
tox-travis
, which adds some tox voodoo to achieve this. I would be interested in how to fix this in nox, and note a few other important projects are now using nox so we may be able to find how they are solving the problem.Another concern is that when I use the latest release of
nox
from https://github.com/theacodes/nox , it fails.https://travis-ci.org/jayvdb/pipx/builds/597571116
The text was updated successfully, but these errors were encountered: