Giter VIP home page Giter VIP logo

Comments (5)

ymyzk avatar ymyzk commented on June 14, 2024 1

@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.

adrn avatar adrn commented on June 14, 2024 1

Ah, that makes sense - thanks for the response!

from tox-gh-actions.

ymyzk avatar ymyzk commented on June 14, 2024 1

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.

ymyzk avatar ymyzk commented on June 14, 2024

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.

adrn avatar adrn commented on June 14, 2024

Thanks @ymyzk -- this was very helpful!

from tox-gh-actions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.