Comments (5)
@adrn, thanks for the question. Let me answer the question on Python 3.7 first.
I assume you want to run the following environments on Python 3.7 jobs.
- py37-cov
- py37-numpy117
- py37-numpy118
- py37-numpy119
- py37-astropy40
- py37-astropylts
- build_docs
If you want to achieve this behavior, we need to update the gh-actions
section like this.
[gh-actions]
python =
3.7: py37-cov, py37-numpy{117,118,119}, py37-astropy{40,lts}, build_docs
3.8: py38
tox-gh-actions find which environments to run based on factors. Factors are an environment name delimited by hyphens. With the previous configuration, tox-gh-actions tries to find a list of environments which has numpy
as a factor. But there's no environment having this as a factor. There's an environment which has numpy117
, numpy118
, or numpy119
though.
from tox-gh-actions.
Ah, that makes sense - thanks for the response!
from tox-gh-actions.
A working example (Python 3.7 + macOS): https://github.com/ymyzk/pyia/runs/865503679
2020-07-13T14:15:50.0641210Z ##[group]Run tox -vv
2020-07-13T14:15:50.0641440Z �[36;1mtox -vv�[0m
2020-07-13T14:15:50.0797190Z shell: /bin/bash -e {0}
2020-07-13T14:15:50.0797330Z env:
2020-07-13T14:15:50.0797540Z pythonLocation: /Users/runner/hostedtoolcache/Python/3.7.8/x64
2020-07-13T14:15:50.0797660Z ##[endgroup]
2020-07-13T14:15:50.4605150Z using tox.ini: /Users/runner/work/pyia/pyia/tox.ini (pid 1403)
2020-07-13T14:15:50.4829670Z original envconfigs: ['.package', 'py37-cov', 'py38', 'build_docs', 'linkcheck', 'codestyle']
2020-07-13T14:15:50.4830710Z original envlist: ['py37-cov', 'py38', 'build_docs', 'linkcheck']
2020-07-13T14:15:50.4831610Z original envlist_default: ['py37-cov', 'py38', 'build_docs', 'linkcheck']
2020-07-13T14:15:50.4832240Z Python version: 3.7
2020-07-13T14:15:50.4833250Z tox-gh-actions config: {'python': {'3.7': ['py37-cov', 'py37-numpy', 'py37-astropy', 'build_docs'], '3.8': ['py38']}, 'env': {}}
2020-07-13T14:15:50.4834100Z new envlist: ['py37-cov', 'build_docs']
2020-07-13T14:15:50.4931800Z using tox-3.16.1 from /Users/runner/hostedtoolcache/Python/3.7.8/x64/lib/python3.7/site-packages/tox/__init__.py (pid 1403)
A non-working example (Python 3.8 + macOS): https://github.com/ymyzk/pyia/runs/865503728
2020-07-13T14:15:51.7268250Z ##[group]Run tox -vv
2020-07-13T14:15:51.7268490Z �[36;1mtox -vv�[0m
2020-07-13T14:15:51.7413360Z shell: /bin/bash -e {0}
2020-07-13T14:15:51.7413480Z env:
2020-07-13T14:15:51.7413600Z pythonLocation: /Users/runner/hostedtoolcache/Python/3.8.3/x64
2020-07-13T14:15:51.7413700Z ##[endgroup]
2020-07-13T14:15:52.0636380Z using tox.ini: /Users/runner/work/pyia/pyia/tox.ini (pid 1364)
2020-07-13T14:15:52.0785250Z could not satisfy requires MissingDependency(<Requirement('pip>=19.3.1')>)
2020-07-13T14:15:52.2315380Z using tox-3.16.1 from /Users/runner/hostedtoolcache/Python/3.8.3/x64/lib/python3.8/site-packages/tox/__init__.py (pid 1364)
This part could not satisfy requires MissingDependency(<Requirement('pip>=19.3.1')>)
looked suspicious to me. I tried removing the like pip >= 19.3.1
from tox.ini
and tox-gh-actions worked (https://github.com/ymyzk/pyia/runs/865542130)
I'm still not clear why adding pip >= 19.3.1
can cause the issue but this seems to be outside of the scope of tox-gh-actions itself. It's likely there's a problem in either tox, tox.ini
, or the environment. I can investigate a bit more but I cannot guarantee the response.
from tox-gh-actions.
I'm still investigating the second issue, Python 3.8 on macOS. As far as I checked logs using tox -vv
, it seems tox-gh-actions is not loaded as a tox plugin for some reason. I'm trying to identify the cause.
from tox-gh-actions.
Thanks @ymyzk -- this was very helpful!
from tox-gh-actions.
Related Issues (20)
- codecov not working HOT 7
- Cannot find matcher.json after update to 2.9.0 HOT 8
- pypy2 HOT 3
- `tox-gh-actions` selects too many environments HOT 1
- Error in alpine Linux with matchers HOT 3
- Python 3.11 Support HOT 2
- Valid versioning syntax when specifying Python version in tox.ini HOT 4
- Can the warning about "no found environment" be turned into an error? HOT 2
- [regression] tox-gh-actions >= 3 breaks tox >= 4 HOT 3
- No coverage report data on windows-latest workflows HOT 2
- Package Installation failing on github actions. HOT 2
- TypeError comparing options.parallel to None HOT 4
- Python 3.6 environment not found, but works for 3.7, 3,8, 3,9... HOT 2
- Improve error reporting when a config is malformed HOT 1
- TypeError when running `tox --parallel` HOT 2
- Python `version: factor` mapping causes side-effect on Tox v4 HOT 2
- Tox step not executed
- Release 3.1.2 is causing a SyntaxError HOT 3
- `requires` in `[tox]` breaks factoring out environments HOT 1
- Tox is running different python version to the one installed by Github Actions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tox-gh-actions.