Commit Graph

37 Commits

Author SHA1 Message Date
Oliver Stöneberg 2f62e9d316
mitigated several compiler warnings / suppress compiler warnings in CI where we don't care about them ()
There's no need to generate any warnings in the CI unless we react on
them.
2023-10-09 12:25:56 +02:00
Oliver Stöneberg 4afc29b999
updated latest Python in CI to 3.12 () 2023-10-04 10:09:49 +02:00
Oliver Stöneberg a3ff6d53c4
added `-Werror` to pytest calls and fixed reported warnings () 2023-09-26 15:31:37 +02:00
Oliver Stöneberg 176edbd22c
added `--strict` and `-vv` to pytest calls () 2023-09-18 13:57:27 +02:00
Oliver Stöneberg bf5e63300e
avoid duplicated workflow invocations for pushes in PRs made from root repository branches ()
This will prevent duplicated workflows from being invoked for pushes
into pull requests made from branches in the root (`danmar`) repository
branches.
2023-09-01 18:52:20 +02:00
Oliver Stöneberg 5a322365a6
fixed `scriptcheck.yml` () 2023-08-01 13:06:12 +02:00
Daniel Marjamäki 4f3cc168d1
CI: python 2.7 tests needs to run in a container ()
Python 2.7 is not supported anymore in github actions runners.

See:
https://github.com/actions/setup-python/issues/672
2023-06-19 20:53:36 +02:00
Oliver Stöneberg 8672e12a7a
added/updated to Python 3.11 in CI ()
* added/updated to Python 3.11 in CI

* specify `check-latest: true` for `actions/setup-python` so we always use the latest version

* scriptcheck.yml: added note about `shellcheck`
2022-10-25 21:53:02 +02:00
Oliver Stöneberg ca9747cf7d
address most Node.js 12 deprecation warnings in GitHub workflows () 2022-10-11 19:50:59 +02:00
Oliver Stöneberg 0ab7116891
refs - donate-cpu-server.py: added query parameter `pkgs` to some reports to request a list of affected packages () 2022-09-29 21:55:44 +02:00
Oliver Stöneberg 070bae871a
use `ccache` for Linux gcc make CI builds () 2022-09-03 21:21:24 +02:00
Oliver Stöneberg 732282fe06
added initial usage of `ccache` in the CI () 2022-08-27 15:06:16 +02:00
Oliver Stöneberg cf1271889a
reduced permissions of GitHub actions () 2022-08-26 23:25:07 +02:00
Oliver Stöneberg bc58f55c6e
donate-cpu: greatly improved `LibraryIncludes.get_libraries()` performance / some optimizations and cleanups ()
* donate_cpu_lib.py: use `os.path.join()`

* donate-cpu: removed remaining usage of `os.chdir()`

* donate_cpu_lib.py: moved library includes code into class

* donate_cpu_lib.py: pre-compile library include regular expressions

* donate_cpu_lib.py: pre-compile some more regular expressions

* donate_cpu_lib.py: small unpack_package() cleanup and optimization

* donate_cpu_lib.py: added some information about the extracted files to unpack_package()

* donate_cpu_lib.py: bumped version

* added test_donate_cpu_lib.py

* donate_cpu_lib.py: greatly improved `LibraryIncludes.get_libraries()` performance

only scan each file once for previously undetected libraries only

* test_donate_cpu_lib.py: fix for Python 3.5

* scriptcheck.yml: added `-v` to pytest calls so we get the complete diff on assertions

* fixed `test_arguments_regression()` Python tests with additional pytest arguments

* donate_cpu_lib.py: use `subprocess.check_call()`

* test_donate_cpu_lib.py: sort results to address differences in order with Python 3.5
2022-07-13 21:09:29 +02:00
Daniel Marjamäki a2b50c1ccf ci: fix syntax error in scriptcheck.yml 2022-06-16 10:28:55 +02:00
Daniel Marjamäki 7999808639 ci: disable pylint because it fails to import files 2022-06-16 09:09:44 +02:00
Oliver Stöneberg 703396e549
use `ubuntu-22.04` as main/base distro in CI () 2022-05-31 19:55:57 +02:00
Patrick Oppenlander d7317b4f8a
fix html report generation with pygments >= 2.12.0 ()
pygments 2.12.0 changed the signature of the HtmlFormatter.wrap()
method. As we don't actually care about the arguments to wrap we can
use packing/unpacking to maintain compatability with older versions of
pygments.
2022-05-16 12:58:54 +02:00
Oliver Stöneberg 47c7287b8d
scriptcheck.yml: fixated pygments version and re-enabled all Python versions () 2022-05-05 21:49:01 +02:00
Paul Fultz II f48d1690a7
Disable the broken python version in the CI () 2022-04-25 18:14:17 +02:00
Oliver Stöneberg 8fc5c93803
refactored reduce.py into a class and added unit test for it () 2022-03-19 19:42:44 +01:00
Daniel Marjamäki 03deb4d31e addons: interface with premiumaddon if it exists 2022-02-24 16:08:59 +01:00
Oliver Stöneberg f79bb40e3d
scriptcheck.yml: avoid duplicated cppcheck builds () 2021-12-11 15:21:39 +01:00
Oliver Stöneberg f309925a7b
update latest Python in CI to 3.10 / use all available threads for pylint () 2021-10-11 19:14:46 +02:00
Daniel Marjamäki 2fcc0c3959 Remove extra syntax checking of test cases, it's too pedantic for now 2021-05-14 22:32:30 +02:00
Daniel Marjamäki 5b3227db8d CI; extract tests and perform syntax check 2021-05-14 13:55:25 +02:00
Oliver Stöneberg 98335e5d5f
moved more tests from Travis to GitHub actions () 2021-04-09 07:47:11 +02:00
Oliver Stöneberg 052de79b6d
some test/CI related refactoring and cleanup () 2021-04-03 21:22:39 +02:00
Oliver Stöneberg 4d526dcbf7
extended the Python script checks in the CI and adjusted some scripts () 2021-03-31 22:09:42 +02:00
Oliver Stöneberg be62fab737
donate_cpu_lib.py: improved timeout reporting and process handling () 2021-02-27 03:19:08 +01:00
Oliver Stöneberg e783df646a
various CI refactorings and cleanups () 2021-02-21 14:17:02 +01:00
Oliver Stöneberg b1ccad5f02
some Python-related CI cleanups () 2021-02-20 13:26:28 +01:00
Oliver Stöneberg f46a9e3543
fixed/excluded some shellcheck warnings and actually fail the build when something is found () 2021-01-20 18:43:49 +01:00
amai2012 2eb326de83
Update workflows to Ubuntu 20.04 () 2020-12-15 10:59:09 +01:00
Daniel Marjamäki f145ae967d run addon pytest scripts in github action because something fails on travis 2020-11-24 07:48:30 +01:00
Daniel Marjamäki e331168481 CI: Move tasks from Travis to 'github actions' to speed up CI 2020-09-05 18:29:19 +02:00
amai2012 69893fa9bc
Create scriptcheck.yml ()
A github action to run checks on shell and python scripts
2020-07-30 10:37:14 +02:00