Skip to content

Fix and clean up CI script - #876

Merged
JelleZijlstra merged 10 commits into
python:masterfrom
srittau:fix-ci
Aug 31, 2021
Merged

JelleZijlstra merged 10 commits into
python:masterfrom
srittau:fix-ci

Conversation

@srittau

@srittau srittau commented Aug 30, 2021 •

Copy link
Copy Markdown
Collaborator
  • Split Python 2.7 tests from Python 3 tests as they use different paths and require installation of the typing module.
  • Split typing backport and typing_extension tests for Python 2.
  • Install typing from pypi instead of using the local version for Python 2.
  • Remove support for Python 3.4 and 3.5.
  • Don't run typing backport tests for Python 3.
  • Unpin pytest version for Python 3.
  • Don't install unnecessary pytest plugins pytest-xdist and pytest-cov.

* Split Python 2.7 tests from Python 3 tests as they use different paths
  and require installation of the typing module.
* Split running typing and typing_extensions tests into two steps.
* Run the typing test step only on Python < 3.7.
Comment thread .github/workflows/ci.yml Outdated
@srittau
srittau marked this pull request as ready for review August 30, 2021 22:24
@srittau

srittau commented Aug 30, 2021

Copy link
Copy Markdown
Collaborator Author

Ready for review. I'm unsure why the 3.10 fails, but at least the CI script is now cleaner, and it fails in a test that it should actually run, not in the typing test, so this PR is an improvement. I will have another stab at this tomorrow, if no one beats me to it.

@JelleZijlstra

Copy link
Copy Markdown
Member

Might be an incompatibility in pytest or pytest-xdist. To get around it we could just stick to unittest.

* Pin version only for Python 2
* Remove pytest-xdist and pytest-cov not necessary here
@srittau srittau changed the title Clean up CI script Fix and clean up CI script Aug 31, 2021
@JelleZijlstra
JelleZijlstra merged commit 9f0f1b6 into python:master Aug 31, 2021
@srittau
srittau deleted the fix-ci branch August 31, 2021 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants