-
-
Notifications
You must be signed in to change notification settings - Fork 8
Update CI tests #126
base: master
Are you sure you want to change the base?
Update CI tests #126
Conversation
Allows manual starting a workflow run
Caching tox didn't work
I don't know to be honest. @JulienPalard, what do you think ?
I think this is a good idea though. |
Seluj78
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far so good in my eyes 👌 👀
|
Just to complement, my idea regarding 3.12-dev is to use https://github.com/deadsnakes/action (its README has the syntax: if suffix has -dev then run deadsnakes's Python image) Also, it seems 1 workflow awaiting approval is require. You may want to do it so the tests are run. |
|
Thanks a lot @rffontenelle! Don't worry about enhancing too much the .github/workflow (the 3.12 thing via deadsnakes) as this repo will probably move soon out of github (we're moving to our https://git.afpy.org that we've opened because we're less and less happy to produce open-source using a close-source tool, here, at the AFPy). |
|
@JulienPalard does this apply to all poutils-related software? |
It applies to all poutils-related software hosted under https://github.com/AFPy/Potodo, yes. Ultimately it could apply to all repositories under https://github.com/AFPy (I don't see the point of keeping our open-source code in a close-source environment now that we have a self-hosted open-source alternative). |
I started with some GitHub Actions versions update and went on fixing stuff and enabling others, so I'm submitting for you consideration and see if anything else should be changed.
Heads up: errors popped up.
Summary of my changes:
Issues brought up:
ubuntu-latestimage (now 22.04) does not support Python 3.6 — note this doesn't affectmacos-latest(yet);Error outputs:
Click for flake8 error output.
ERROR: invocation failed (exit code 1), logfile: /home/runner/work/Potodo/Potodo/.tox/flake8/log/flake8-0.log ================================== log start =================================== Traceback (most recent call last): File "/home/runner/work/Potodo/Potodo/.tox/flake8/bin/flake8", line 8, in sys.exit(main()) ^^^^^^ File "/home/runner/work/Potodo/Potodo/.tox/flake8/lib/python3.11/site-packages/flake8/main/cli.py", line 23, in main app.run(argv) File "/home/runner/work/Potodo/Potodo/.tox/flake8/lib/python3.11/site-packages/flake8/main/application.py", line 198, in run self._run(argv) File "/home/runner/work/Potodo/Potodo/.tox/flake8/lib/python3.11/site-packages/flake8/main/application.py", line 186, in _run self.initialize(argv) File "/home/runner/work/Potodo/Potodo/.tox/flake8/lib/python3.11/site-packages/flake8/main/application.py", line 165, in initialize self.plugins, self.options = parse_args(argv) ^^^^^^^^^^^^^^^^ File "/home/runner/work/Potodo/Potodo/.tox/flake8/lib/python3.11/site-packages/flake8/options/parse_args.py", line 53, in parse_args opts = aggregator.aggregate_options(option_manager, cfg, cfg_dir, rest) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/Potodo/Potodo/.tox/flake8/lib/python3.11/site-packages/flake8/options/aggregator.py", line 30, in aggregate_options parsed_config = config.parse_config(manager, cfg, cfg_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/runner/work/Potodo/Potodo/.tox/flake8/lib/python3.11/site-packages/flake8/options/config.py", line 131, in parse_config raise ValueError( ValueError: Error code '#' supplied to 'extend-ignore' option does not match '^[A-Z]{1,3}[0-9]{0,3}$' ERROR: InvocationError for command /home/runner/work/Potodo/Potodo/.tox/flake8/bin/flake8 tests/ potodo/ (exited with code 1)Click for py311 error output.
(also attaching because the output was HTML-formatted a bit: py311.txt)
Ideas: