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

Run CI for Python 3.6 on Ubuntu 20.04 #217

Merged
merged 2 commits into from Dec 3, 2022
Merged

Conversation

kalikiana
Copy link
Member

@kalikiana kalikiana commented Dec 2, 2022

The now latest Ubuntu no longer ships with 3.6.

@kalikiana kalikiana force-pushed the ci_mocker_mock_mock branch 2 times, most recently from 6a50b8b to 0c6fd99 Compare December 2, 2022 15:24
@kalikiana kalikiana changed the title Rename variable just to confirm if CI fails Switch CI for Python tests to Ubuntu 20.04 Dec 2, 2022
@kalikiana kalikiana marked this pull request as ready for review December 2, 2022 15:26
Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI checks fail in https://github.com/os-autoinst/openqa_review/actions/runs/3602936327/jobs/6070510255#step:5:38 with

flake8 run-test: commands[0] | flake8
Traceback (most recent call last):
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/bin/flake8", line 8, in <module>
    sys.exit(main())
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/lib/python3.10/site-packages/flake8/main/cli.py", line 23, in main
    app.run(argv)
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/lib/python3.10/site-packages/flake8/main/application.py", line 198, in run
    self._run(argv)
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/lib/python3.10/site-packages/flake8/main/application.py", line 186, in _run
    self.initialize(argv)
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/lib/python3.10/site-packages/flake8/main/application.py", line 165, in initialize
    self.plugins, self.options = parse_args(argv)
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/lib/python3.10/site-packages/flake8/options/parse_args.py", line 51, in parse_args
    option_manager.register_plugins(plugins)
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/lib/python3.10/site-packages/flake8/options/manager.py", line 259, in register_plugins
    add_options(self)
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/lib/python3.10/site-packages/flake8_quotes/__init__.py", line 109, in add_options
    cls._register_opt(parser, '--quotes', action='store',
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/lib/python3.10/site-packages/flake8_quotes/__init__.py", line 99, in _register_opt
    parser.add_option(*args, **kwargs)
  File "/home/runner/work/openqa_review/openqa_review/.tox/flake8/lib/python3.10/site-packages/flake8/options/manager.py", line 281, in add_option
    self._current_group.add_argument(*option_args, **option_kwargs)
  File "/opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/argparse.py", line 1428, in add_argument
    raise ValueError('%r is not callable' % (type_func,))
ValueError: 'choice' is not callable
ERROR: InvocationError for command /home/runner/work/openqa_review/openqa_review/.tox/flake8/bin/flake8 (exited with code 1)

Is this related?

EDIT: Oh and please make sure the git commit message subject line states the "Why", not the "What"

@kalikiana kalikiana changed the title Switch CI for Python tests to Ubuntu 20.04 =Run CI for Python 3.6 on Ubuntu 20.04 Dec 2, 2022
@kalikiana kalikiana changed the title =Run CI for Python 3.6 on Ubuntu 20.04 Run CI for Python 3.6 on Ubuntu 20.04 Dec 2, 2022
@kalikiana kalikiana force-pushed the ci_mocker_mock_mock branch 2 times, most recently from 350113e to 24ca118 Compare December 2, 2022 19:11
@mimi1vx mimi1vx requested a review from okurz December 3, 2022 00:46
@mergify mergify bot merged commit 4096a65 into master Dec 3, 2022
@mergify mergify bot deleted the ci_mocker_mock_mock branch December 3, 2022 09:31
@@ -24,7 +26,7 @@ commands = black --check --diff --fast .

[testenv:flake8]
deps =
flake8
flake8<6.0.0 # TODO remove pinned version once https://github.com/zheller/flake8-quotes/pull/111 is merged.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: zheller/flake8-quotes#111 was merged, but no release yet

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

5 participants