Skip to content
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

CI: Specify tox 'py' environment #581

Merged
merged 1 commit into from
Sep 3, 2023
Merged

CI: Specify tox 'py' environment #581

merged 1 commit into from
Sep 3, 2023

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Sep 1, 2023

Fix for the new tox 4.10.0 release (4.11.0 is now the newest):

Run tox
  tox
  shell: /usr/bin/bash -e {0}
  env:
    FORCE_COLOR: 1
    pythonLocation: /opt/hostedtoolcache/Python/3.10.12/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.12/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.12/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.12/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.12/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.12/x64/lib
    TOXENV: python
ROOT: HandledError| provided environments not found in configuration file:
python
Error: Process completed with exit code 254.

https://github.com/python/bedevere/actions/runs/6047954379/job/16412393623?pr=578

We use pyXXX in tox.ini:

envlist = py{312, 311, 310, 39, 38}

https://tox.wiki/en/latest/changelog.html#v4-10-0-2023-08-21 says:

Change accepted environment name rule: must be made up of factors defined in configuration or match regex (pypy|py|cython|)((\d(\.\d+(\.\d+)?)?)|\d+)?. If an environment name does not match this fail, and if a close match found suggest that to the user. (#3099)

@hugovk hugovk merged commit a098dd5 into python:main Sep 3, 2023
5 checks passed
@hugovk hugovk deleted the fix-tox branch September 3, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants