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

Fix CI linting workflow #308

Merged
merged 5 commits into from Mar 11, 2022
Merged

Fix CI linting workflow #308

merged 5 commits into from Mar 11, 2022

Conversation

seifertm
Copy link
Contributor

@seifertm seifertm commented Mar 11, 2022

The tox "lint" target expects Python 3.10 to be installed, but CI only installs Python 3.9. The skip_missing_interpreters configuration caused the "lint" workflow in CI to exit successfully, even though no linting was performed.

This PR:

  • Removes the skip_missing_interpreters to prevent silent errors in the future.

  • Installs the required Python version during the lint workflow

  • Removes tox's "lint" environment from the set of "3.9" environments of a GitHub actions run.

    Linting is performed explicitly in a separate workflow and does not need to be run as part of the Python 3.9 tests. Additionally, linting currently expects Python 3.10 and will fail during the Python 3.9 test run.

  • Fixes a bug that prevented mypy to be installed correctly for tox's "lint" environment

    The lint environment requires mypy from the test dependencies to be installed. Although the environment defines extras = testing, it also specifies skip_install = true, which also skips installation of test dependencies.

…issing.

 The tox "lint" target expects Python 3.10 to be installed, but CI only installs Python 3.9. skip_missing_interpreters caused the "lint" workflow in CI to exit successfully, even though no linting was performed.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
…ox configuration.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
…onments of a GitHub actions run.

Linting is performed explicitly in a separate workflow and does not need to be run as part of the Python 3.9 tests. Additionally, linting currently expects Python 3.10 and will fail during the Python 3.9 test run.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
The lint environment requires mypy from the test dependencies to be installed. Although the environment defines `extras = testing`, it also specifies `skip_install = true`, which also skips installation of test dependencies.

This change removes skip_install = true, so that mypy is installed correctly.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
… "version-info" environment.

Signed-off-by: Michael Seifert <m.seifert@digitalernachschub.de>
@seifertm seifertm changed the title [WIP] Fix CI linting workflow Fix CI linting workflow Mar 11, 2022
@seifertm seifertm merged commit 133d8a8 into pytest-dev:master Mar 11, 2022
@seifertm seifertm deleted the fix-ci-lint branch October 23, 2023 06:15
@seifertm seifertm restored the fix-ci-lint branch October 23, 2023 08:16
@seifertm seifertm deleted the fix-ci-lint branch October 23, 2023 08:33
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

2 participants