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

Support under-specified Python versions #12

Closed
milliams opened this issue Dec 18, 2019 · 2 comments · Fixed by #13
Closed

Support under-specified Python versions #12

milliams opened this issue Dec 18, 2019 · 2 comments · Fixed by #13
Labels

Comments

@milliams
Copy link

I tried to use your action with a matrix-specifed Python version. I set it like:

...
jobs:
  unit-tests:
    runs-on: ubuntu-latest
    strategy:
      max-parallel: 4
      matrix:
        python-version: [3.6, 3.7, 3.8]
    steps:
    - uses: actions/checkout@master
    - name: Install
      uses: abatilo/actions-poetry@v1.1.0
      with:
        python_version:  ${{ matrix.python-version }}
        args: install
...

and I expected that [3.6, 3.7, 3.8] would choose the latest release of each version (so 3.6.9, 3.7.5 and 3.8.0).

Instead I get an error:

python-build: definition not found: 3.6

The following versions contain `3.6' in the name:
  3.3.6
  3.6.0
  3.6-dev
  3.6.1
  3.6.2
  3.6.3
  3.6.4
  3.6.5
  3.6.6
  3.6.7
  3.6.8
  3.6.9
  activepython-3.6.0
  pypy3.6-7.0.0-src
  pypy3.6-7.0.0
  pypy3.6-7.1.0-src
  pypy3.6-7.1.0
  pypy3.6-7.1.1-src
  pypy3.6-7.1.1
  pypy3.6-7.2.0-src
  pypy3.6-7.2.0

See all available versions with `pyenv install --list'.

If the version you need is missing, try upgrading pyenv.
pyenv: version `3.6' not installed

Perhaps https://github.com/momo-lab/xxenv-latest could be used? Otherwise, is it possible to use the logic from https://github.com/actions/setup-python to do this?

abatilo added a commit that referenced this issue Dec 18, 2019
This change allows you to under specify a version of Python, such as
dropping the patch version number, and the action will still work. This
works even if you drop the minor version number and the patch version
number.

We're using the https://github.com/momo-lab/xxenv-latest plugin to find
the latest version of Python based on whatever version you gave it.

Fixes #12
abatilo added a commit that referenced this issue Dec 18, 2019
This change allows you to under specify a version of Python, such as
dropping the patch version number, and the action will still work. This
works even if you drop the minor version number and the patch version
number.

We're using the https://github.com/momo-lab/xxenv-latest plugin to find
the latest version of Python based on whatever version you gave it.

Fixes #12
abatilo added a commit that referenced this issue Dec 18, 2019
This change allows you to under specify a version of Python, such as
dropping the patch version number, and the action will still work. This
works even if you drop the minor version number and the patch version
number.

We're using the https://github.com/momo-lab/xxenv-latest plugin to find
the latest version of Python based on whatever version you gave it.

Fixes #12
abatilo added a commit that referenced this issue Dec 18, 2019
This change allows you to under specify a version of Python, such as
dropping the patch version number, and the action will still work. This
works even if you drop the minor version number and the patch version
number.

We're using the https://github.com/momo-lab/xxenv-latest plugin to find
the latest version of Python based on whatever version you gave it.

Fixes #12
@github-actions
Copy link

🎉 This issue has been resolved in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@abatilo
Copy link
Owner

abatilo commented Dec 18, 2019

Thank you for the suggestion @milliams!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants