Commit Graph

173 Commits

Author SHA1 Message Date
Florian Bruhin 76b03db20e Revert "ci: Add workaround for Archlinux/Docker issue"
This reverts commit 478e4de7bd.
Fixed according to https://github.com/actions/virtual-environments/issues/2658
2021-03-08 14:04:56 +01:00
Florian Bruhin 30d54c8da4 Revert "ci: Use different workaround for Archlinux docker"
This reverts commit 545e37b913.
Doesn't actually seem to work...
2021-02-18 10:15:43 +01:00
Florian Bruhin 545e37b913 ci: Use different workaround for Archlinux docker 2021-02-16 11:24:40 +01:00
Florian Bruhin 8ba1a28fa5 Revert "Revert "ci: Add workaround for Archlinux/Docker issue""
This reverts commit 8fccc17bd8.
Still broken unfortunately (probably on GitHub's side)...
2021-02-15 14:24:27 +01:00
Florian Bruhin 8fccc17bd8 Revert "ci: Add workaround for Archlinux/Docker issue"
This reverts commit 478e4de7bd.
Maybe not needed anymore after https://bugs.archlinux.org/task/69563#comment196734
2021-02-15 14:22:18 +01:00
Florian Bruhin 478e4de7bd ci: Add workaround for Archlinux/Docker issue
See https://github.com/actions/virtual-environments/issues/2658
Thanks to https://github.com/lxqt/lxqt-panel/pull/1562
2021-02-10 19:58:04 +01:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 222f1f19a1 Bump copyright years
Closes #6015
2021-01-20 20:06:19 +01:00
Florian Bruhin 282b2b99e8 docker: Base on official Archlinux image 2021-01-04 11:58:31 +01:00
Florian Bruhin 6863d050e0 ci: Fix broken pattern 2020-12-03 18:48:04 +01:00
Florian Bruhin 6e40605ae1 scripts: Improve output for misc_checks
- Don't output type annotation message for "# type: ignore"
- Output entire message colored
- Strip colors in problemmatcher regex
2020-12-03 17:07:08 +01:00
Florian Bruhin df7e0553d8 ci: Use installed Python version in Dockerfile
Archlinux upgrading from Python 3.8 to 3.9 broke the build - let's just
use whatever is in $PATH instead.
2020-12-03 10:51:46 +01:00
Florian Bruhin 31cd414664 ci: Fix lint for docker workflow 2020-11-25 22:34:18 +01:00
Florian Bruhin ec93c0458c Integrate docker rebuild workflow 2020-11-25 19:49:25 +01:00
Florian Bruhin 6d04af727d scripts: Improve spell checks in misc_checks.py
- Precompile patterns which leads to a nice speedup (8s -> 2.75s on my machine)
- Add an explanation
- Output messages in a way we can use GitHub Actions problem matchers
- Add those problem matchers
2020-11-02 16:50:33 +01:00
Florian Bruhin a49674600c ci: Also ignore leading escape for flake8 2020-07-30 18:13:35 +02:00
Florian Bruhin 321f2f0529 ci: Strip stray ANSI character in mypy problemmatcher
For some odd reason, there's a stray \033[0m at the beginning of the
line (despite colors being disabled?) which throws off GitHub's path matching.
Adjust the regex so that this isn't part of the filename (but still optional,
in case it gets removed from mypy).
2020-07-30 10:40:39 +02:00
Florian Bruhin 5f64f72b5e ci: Loop pytest problem matcher 2020-07-28 14:53:19 +02:00
Florian Bruhin 1daa863218 Add yamllint 2020-07-23 11:21:04 +02:00
Florian Bruhin 1aeefe1968 ci: Disable mypy coloring again
Looks like mypy uses curses to get colors, so there's really nothing we can do
here on GitHub Actions.
2020-07-13 22:34:51 +02:00
Florian Bruhin f82c8cb5fe ci: Improve mypy output
- Set MYPY_FORCE_TERMINAL_WIDTH to get 180-column output (rather than 80), so
  that error messages fit on one line.
- Set MYPY_FORCE_COLOR to get colored output
- Adjust problemmatcher regex accordingly
2020-07-13 22:16:42 +02:00
Florian Bruhin 858a6e3268 ci: Add exception class to problem matcher group
Otherwise, with a "KeyError: 1" we will only get "1" as message.
2020-07-09 09:47:53 +02:00
Florian Bruhin 1a3e370270 ci: Fix problemmatchers.py structure 2020-07-08 18:30:09 +02:00
Florian Bruhin e10c37d153 ci: Simplify pytest problem matchers
Let's not match on so much unrelated stuff...
2020-07-08 18:11:32 +02:00
Florian Bruhin e7f05436d9 ci: Fix up problemmatcher patterns
We need to have a message for the file/line we get from a stacktrace - let's
see if it works out to take it from the next "E ..." line.
2020-07-06 13:27:50 +02:00
Florian Bruhin a4864546ab ci: Try to improve pytest problemmatchers
Don't match every single line of a stacktrace.
2020-07-06 13:23:33 +02:00
Florian Bruhin f916965cd5 problemmatchers: Write multiple files 2020-07-03 18:56:54 +02:00
Florian Bruhin 34f66cf4a8 problemmatcher: Take temporary directory as argument
Hopefully fixes things on Docker
2020-07-03 18:56:54 +02:00
Florian Bruhin cfc5ac9498 problemmatcher: Improve/simplify regexes 2020-07-03 18:56:54 +02:00
Florian Bruhin 2511c3cea4 ci: Write problem matchers for Python/pytest exceptions 2020-07-03 18:56:54 +02:00
Florian Bruhin c97203dd62 ci: Change structure in problemmatcher.py again
While trying to simplify the data structure, we didn't consider a case where we
want to register multiple matchers with the same severity...

Let's simplify things a bit, by having a list of matchers in the data. Also
attempt to pass that list to GitHub, because they support doing so, in
theory...
2020-07-03 18:56:54 +02:00
Florian Bruhin abfd47f31b ci: Get rid of install.sh 2020-07-03 18:56:54 +02:00
Florian Bruhin fdfb29c992 CI: Improve apt installation 2020-07-03 18:56:54 +02:00
Florian Bruhin 69d6d58990 ci: Remove codecov requirements
We don't need to install codecov anymore as we use the GitHub Action
2020-07-03 18:56:51 +02:00
Florian Bruhin 240d2e27cb ci: Don't install texlive with asciidoc 2020-07-03 18:55:46 +02:00
Florian Bruhin bd4a9030aa ci: Analyze backtraces on GitHub Actions 2020-07-03 18:55:46 +02:00
Florian Bruhin edf3adf1e8 ci: Get rid of run.sh
Instead, run tox directly from ci.yml and have an args matrix variable there.
This also changes the macOS args to only run unit tests, like on Travis.
2020-07-03 18:55:46 +02:00
Florian Bruhin 9b55bb2f49 ci: Use python instead of python3 in script
We only have python.exe on Windows, and after the setup-python action, "python"
hopefully is the correct Python 3 executable.
2020-07-03 18:55:46 +02:00
Florian Bruhin a8186f8878 ci: Remove Docker support from scripts 2020-07-02 22:21:07 +02:00
Florian Bruhin a00ea50c60 ci: Try to match colored pylint output 2020-07-02 22:21:07 +02:00
Florian Bruhin 52911273e7 ci: Fix filenames with various problemmatchers for same testenv 2020-07-02 22:21:07 +02:00
Florian Bruhin d14bca8be8 ci: Add mypy/pylint to problem matchers 2020-07-02 22:21:07 +02:00
Florian Bruhin d312356123 ci: Allow different warning/error patterns in problemmatchers.py 2020-07-02 22:21:07 +02:00
Florian Bruhin 593934bd62 ci: Add some examples to problemmatchers 2020-07-02 22:21:07 +02:00
Florian Bruhin 9852c84a07 ci: Add flake8 to problemmatchers 2020-07-02 22:21:07 +02:00
Florian Bruhin ff8d8d378b ci: Improve vulture regex for problemmatchers 2020-07-02 22:21:07 +02:00
Florian Bruhin 9868402dfc ci: Add vulture to problem matchers
(cherry picked from commit 34037b7293820ba0d8ad39aca6aa6d31d1eab4cb)
2020-07-02 22:21:07 +02:00
Florian Bruhin 4715ad387d ci: Make it possible to set all attributes of problem matchers 2020-07-02 22:21:07 +02:00
Florian Bruhin 07a30c0092 ci: Set up problem matchers 2020-07-02 22:21:07 +02:00
Florian Bruhin a2d88a4b13 ci: Use GCC output for shellcheck 2020-07-02 22:21:07 +02:00