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

Use local install-poetry.py on CI for tests and test against Python 3.10.0-rc.2 on all platforms #4476

Closed
wants to merge 2 commits into from
Closed

Conversation

mkniewallner
Copy link
Member

@mkniewallner mkniewallner commented Sep 5, 2021

Pull Request Check List

  • Added tests for changed code. Not applicable
  • Updated documentation for changed code. Not applicable

Context

When working on #4424 and its associated PR #4425, I unfortunately broke installer for Python 3.6, because capture_output is not available in Python 3.6.
First of all, sorry about that, I should have been more careful.

The fact that there's no tests for install-poetry.py script couldn't prevent the mistake from happening.

Proposal

This pull request updates the CI workflow that runs tests so that we install poetry using the installer from the current branch, rather than the one on master branch.

While this would not replace full functional tests, this could be a quick win to ensure that poetry is still installable on all supported Python versions and OSes on pull requests that update install-poetry.py.
To showcase this, I've reintroduced the change that made the installer fail on Python 3.6 here, which correctly makes the workflow fail for Python 3.6 jobs on the CI.

Alternatively, if we have other reasons to install poetry from master branch, we could add a dedicated job that specifically tests the installation of poetry through install-poetry.py, and keep installing poetry from master branch when running unit tests.

This PR also updates the matrix so that we run the tests on Python 3.10.0-rc.2, and make sure that it makes the workflow fail if the tests don't pass, as the RC2 is IMO stable enough to be worth having green tests.
If this part should stay as is, I'd be happy to revert the commit, or make necessary changes.

Note that quotes have been added for versions because it avoid YAML to interpret them as floats (see actions/setup-python#175 and actions/setup-python#198).

@mkniewallner mkniewallner changed the title Use local install-poetry.py on CI for tests and test against Python 3.10.0-rc.1 on all platforms Use local install-poetry.py on CI for tests and test against Python 3.10.0-rc.2 on all platforms Sep 11, 2021
@neersighted
Copy link
Member

I'm closing this for now as install-poetry.py has been broken out into its own repo. We will likely try to factor it out of workflows in the future -- if you'd like to submit more granular versions of this PR, you are welcome to!

@mkniewallner mkniewallner deleted the use-local-installer-on-ci branch January 12, 2022 23:09
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants