Commit Graph

90 Commits

Author SHA1 Message Date
Dylan Baker
7191b6dab2 ci: install pytest-subtests
Which lets pytest understand unittest.subtest
2021-12-06 20:06:14 -05:00
Jussi Pakkanen
475b8b1ad8 Merge pull request #9377 from mensinda/jsonDocs
docs: Add a JSON documentation backend
2021-10-24 17:46:05 +03:00
Christian Clauss
a5020857f3 Fix typos discovered by codespell 2021-10-10 16:12:25 -04:00
Daniel Mensinger
0eec5480fb docs: Also check on pull-requests 2021-10-09 23:32:46 +02:00
Daniel Mensinger
2ab5620769 docs: GitHub Action up the JSON docs 2021-10-09 23:07:21 +02:00
Xavier Claessens
9d3e9c43cc ci: Add comment to not forget updating wrapdb rules 2021-10-06 08:55:26 -04:00
Daniel Mensinger
de32802ee4 docs: Fix the GitHub action 2021-10-03 11:46:34 +02:00
Daniel Mensinger
d5f30308b4 ci: Fix missing MESON_CI_JOBNAME in the image builders 2021-09-04 17:03:24 +02:00
Daniel Mensinger
cab77b0e4c ci: Use GitHub concurrency 2021-09-04 17:03:24 +02:00
Kevin Meagher
39a92c74e8 Test boost-python on macOS
Previously the meson test case would only test boost-python on linux.
With the #7909 it is now possible to use boost-python on macOS/homebrew.
This enables the boost-python test on both linux and macOS.
It also uses python.extension_module() instead of shared_library to make the
python extension module.
2021-08-18 22:07:27 +03:00
Xavier Claessens
7eb4c23156 Split run_unittests.py file 2021-07-26 15:19:13 -04:00
Jussi Pakkanen
db6efa06c2 Merge pull request #9005 from jon-turney/xskip-ci-2
Add expected skip annotations for non-linux CI runs to framework tests
2021-07-23 18:40:25 +03:00
Eli Schwartz
c7a0c5cde4 coverage: disable the concept of "CI failures"
code coverage may be interesting to some people as an informational
update, but it's really fragile and sometimes obscure, and overall we
would really like to NOT have most PRs reporting a red X in the CI
overview, when all project/unittests succeeded but codecov decides that
by some inscrutbale metric, coverage by % has dropped.

Elegant refactorings are penalized, because removing lines of code or
rewriting them to be more compact, means the overall percentage of
covered code is "less", even though no uncovered code got added.

Even worse, the coverage reports often erroneously complain that a PR
has "added lines #L<num> - L<num> were not covered by tests" even though
github helpfully points out they are "Unchanged files with check
annotations". Or more generally, codecov claims that coverage has
dropped in code which the PR can't touch.

The whole thing is just too much of a source of trouble. So, configure
codecov to consider all PRs as successful no matter what. It is still
welcome to leave informational comments, though.
2021-07-14 19:01:49 +03:00
Jon Turney
24135c8c8e Set MESON_CI_JOBNAME for all CI jobs
Set MESON_CI_JOBNAME for all CI jobs which run project tests.

(Note that ${{ github.job }} is the literal job.id used in the yaml, not
any name given to the job with job.id.name, and so is the same for all
matrix entries, and thus not suitable for our purposes there).
2021-07-13 15:18:32 +01:00
Jon Turney
609864a66d Annotate framework tests with where they are expected to skip
Remove hard-coded framework test skip logic in skippable(), instead
annotate test.json with environments in which skip is expected.

(Mainly this is done with by testing the value of MESON_CI_JOBNAME now
set for linux jobs)
2021-07-07 20:08:12 +02:00
Daniel Mensinger
c0a2025d03 tests: test that we always set encoding 2021-06-29 11:28:08 +02:00
Jussi Pakkanen
0e5f88baf4 Merge pull request #8912 from mensinda/fixBothLibraries
Fix `BothLibraries` processing
2021-06-23 00:54:58 +03:00
Daniel Mensinger
c4b8e03895 tests: both_library test improvements
This switches some `shared_library()` calls to `library()` and adds
one new CI matrix entries for -Ddefault_library={static, both}.
2021-06-22 21:09:25 +02:00
Daniel Mensinger
765aff5a42 coverage: Enable coverage reports 2021-06-22 21:05:11 +03:00
Jon Turney
636bf91586 CI: Split out file format test as a separate GitHub workflow
Split out checking of file format as a separate GitHub workflow, rather
than running it as part of the project tests for every platform and
toolchain combination in CI, so that this test is not effected by the
changed paths constraints which are applied to the project tests.
2021-06-11 15:28:07 +02:00
Jon Turney
1ab0694556 CI: Don't try to update website in a forked repository 2021-06-11 10:46:55 +02:00
Jon Turney
89f2f78972 CI: Don't try to push docker image in a forked repository
The 'build images' workflow runs on a schedule, so will run (and fail)
weekly in every fork.

Don't try to push to docker if docker credentials aren't in repository
secrets.

(A test for that has to be written rather indirectly due to
https://github.com/actions/runner/issues/520)
2021-06-11 10:46:55 +02:00
Jon Turney
0accc3b72d Move Cygwin tests to a GitHub workflow (#8829)
* CI: Don't run cross-only test when other workflows are changed

* CI: Move Cygwin test run from Azure Pipelines to GitHub workflow

Also review installed package list, dropping detritus from 42792554, not
removed in f5ed85d7.
2021-06-10 19:42:02 +03:00
Xavier Claessens
4dec7dbb71 ci: Automatically update website when pushing to master 2021-06-02 17:39:34 +03:00
Daniel Mensinger
1236b1500a ci: Downgrade Qt on MacOS from Qt6 to Qt5 2021-03-04 20:27:59 +02:00
Dylan Baker
38025b9730 ci: fix yaml syntax error 2021-02-05 16:31:33 -08:00
Dylan Baker
c321339b24 Change the Eoan CI to ubuntu rolling ci
This makes the Ubuntu CI always use the latest release, without us
having to manually change it.
2021-01-29 19:40:25 +00:00
Dylan Baker
cbdef0479e workflows/os_comp: Don't run if there aren't relavent changes 2021-01-29 19:40:25 +00:00
Nirbheek Chauhan
832bcac0a7 ci: Run github workflows on stable branches too 2021-01-09 14:06:21 +05:30
Christoph Reiter
8d04b3ce74 CI: Move all remaining jobs from travis-ci to GHA
Some changes:

* Set HOME to /root, since github mounts its own HOME and 'wine'
  (because of permissions) and 'dub' (can't find packages) don't
  like that.
* Remove the seccomp option, doesn't seem to be needed.
2020-12-11 13:45:11 -08:00
Dylan Baker
d4328011cf ci: run msys2 on run_unittests.py changes 2020-12-11 17:46:11 +05:30
Dylan Baker
c94781b2e6 ci: rebuild macos image on run_unittest.py changes 2020-12-11 17:46:11 +05:30
Christoph Reiter
c2f647867e CI: install glib for the MSYS2 jobs to make pkgconf happy
Fixes a test when using pkgconf instead of pkg-config.

The .pc file in the pkgconfig-gen test requires it and pkgconf seems be
stricter here and fails to validate.
2020-11-23 02:14:09 +02:00
Christoph Reiter
9d3aa63681 CI: fix a typo in the msys2 workflow trigger paths 2020-11-23 02:14:09 +02:00
Dylan Baker
3372924007 CI: combine macos and ci_frameworks actions
We're already covering most of the actions through the generic macos
actions, but we should keep the qt4 action.
2020-11-11 07:42:40 -08:00
Dylan Baker
3ffe77ba2c actions: Add project tests actions for macos 2020-11-11 07:42:40 -08:00
Dylan Baker
220da39c7c actions: Add unittests for macos 2020-11-11 07:42:40 -08:00
Dylan Baker
71814049a1 workflows: be more conservative about launching msys
we don't want to lanuch it if we're only modifying a different workflow
template.
2020-11-10 12:44:26 -08:00
Christoph Reiter
a7edbc6ee5 CI: install pytest pytest-xdist for msys2 2020-11-04 18:13:58 +02:00
Christoph Reiter
f000fa407d CI: Port MSYS2 from azure-pipelines to github actions
This uses the msys2/setup-msys2@v2 to set up MSYS2
2020-11-04 18:13:58 +02:00
Jussi Pakkanen
bca90722ec Bump minimum supported Python version to 3.6. Closes #6297. 2020-10-30 11:18:11 +02:00
Daniel Mensinger
b27af7e465 cmake: Add cross tests 2020-10-13 17:04:20 +02:00
Dylan Baker
b7cb30e175 dependencies/hdf5: Convert to a dependency_factory
Instead of a mega dependency that does everything, use a dependency
factory for config-tool and pkg-config
2020-09-25 11:11:46 -07:00
Jon Turney
36600d7465 Add a test run in an environment which only has a cross compiler
Add '--cross-only' option to run_tests.py, so we can arrange not to run
tests in the 'native' suite when only a cross-compiler is available, as
they can't succeed.
2020-09-10 07:20:41 +00:00
Daniel Mensinger
ce042f318e typing: Add run_mypy.py for easier mypy invocation 2020-09-08 20:15:56 +02:00
Jussi Pakkanen
97177bc12a Merge pull request #7689 from scivision/fortran_inc
correct Fortran include algorithm
2020-09-06 20:28:39 +03:00
Michael Hirsch
011210ee14 ci: update to use latest recommendations 2020-09-06 20:27:40 +03:00
Michael Hirsch
d01fc3da8f tests: add fortran cmake subproject include test
ci:unused_arg: update ninja version to work with fortran+cmake
2020-09-03 00:20:07 -04:00
Dylan Baker
d42cd735a4 arglist: Fix remaining mypy errors and warnings
So we can lint it with mypy
2020-06-22 12:06:10 -07:00
Nirbheek Chauhan
4a5aec2fc0 ci: Pin ninja to 1.9.0.post1 for now
See: https://github.com/mesonbuild/meson/pull/7306#issuecomment-643606736
2020-06-13 12:47:45 +00:00