Commit graph

65 commits

Author SHA1 Message Date
Julian Stirling
782977e01c Move integration tests to tests dir 2025-12-18 17:30:56 +00:00
Julian Stirling
7ea5c74626 Remove --openssl-legacy-provider node option 2025-11-03 11:33:35 +00:00
Julian Stirling
3227c0cddf Remove ruff-increased-checking.toml as all checker are now on! 2025-09-18 16:21:45 +01:00
Beth Probert
c9d452932d Update gitlab ci file 2025-08-13 15:18:15 +00:00
Julian Stirling
d9db73a8d9 Fix coverage combination when other sources are removed 2025-07-30 15:12:21 +01:00
Julian Stirling
727d683c48 Add zip of picamera coverage and update CI to use it 2025-07-29 18:21:20 +01:00
Julian Stirling
756affa3aa Remove zenodo scripts and job 2025-07-29 10:15:40 +01:00
Julian Stirling
225ee5bb82 Tweak CI script to have a Git name and email as this is now needed for unit testing. 2025-07-14 17:11:53 +01:00
Julian Stirling
7e6017f648 Get codespell passing and add it as a CI job. 2025-07-11 00:16:25 +01:00
Julian Stirling
12df8c9072 Add extra options to Pydoctor CI command 2025-07-10 10:07:33 +01:00
Julian Stirling
dceb640c77 Add documentation job to the CI. 2025-07-10 09:24:49 +01:00
Julian Stirling
177cb2eef7 Stop allowing integration tests to fail now graceful exit works 2025-07-09 16:53:35 +01:00
Julian Stirling
190766cd1c Add CI job for integration tests 2025-07-09 13:59:16 +01:00
Julian Stirling
8b29ddaf4f Fix artifact path in CI for webapp 2025-07-06 20:49:00 +01:00
Julian Stirling
7fdb5f37ba Apply 4 suggestion(s) to 3 file(s)
Co-authored-by: Beth Probert <beth_probert@outlook.com>
2025-06-09 12:08:25 +00:00
Julian Stirling
c79184a6d9 Use same version number for server and webapp, add CI check
- Check webapp and server have same version number
- Use `genversion` on build to create javascript file with version string
from pyproject.toml
- Expose the version number in the js interface
- Correct format of current of alpha version string because javascript complains

Closes #382
2025-06-09 12:13:15 +01:00
Julian Stirling
deeb164f29 Change from building with node 15 (end of life 2021) to node 18 (just gone EOL, but used on the Pi) 2025-06-05 11:16:53 +00:00
Julian Stirling
7665d45e09 Make the coverage report touch all files 2025-04-11 23:29:32 +01:00
Julian Stirling
e4cfcc76a7 Add some extra rules to ruff, also add a more complete ruff config that fails
Over time we can enable more rules for `ruff check`
2025-04-11 11:56:55 +01:00
Julian Stirling
32f2a7ce70 Fix spurious line endings, don't allow ruff-format to fail anymore 2025-04-02 14:25:22 +01:00
Julian Stirling
336b504377 Split up ruff format and lint allowing format to fail 2025-04-02 13:39:12 +01:00
Richard Bowman
1d59cddac1 Disable pytest code quality report
Code quality report plugin clashes with the version of pytest specced in labthings.

If we resolve this upstream, we can re-enable it.
2024-12-03 14:19:36 +00:00
Richard Bowman
c3cd30b642 Only rebuild docker for changes
Docker is now only rebuilt when it's changed, and on `v3`  branch.

I've also added code quality reporting for pytest.
2024-12-03 12:54:34 +00:00
Richard Bowman
71e6d84aa4 Build docker image and run ruff/pytest 2024-12-03 12:18:45 +00:00
Richard Bowman
35db80121a Update build output location
This now places the static web app in the correct location for the v3 back-end code.
2024-01-03 20:50:33 +00:00
Richard Bowman
7abdbdde4a Add full list of server prerequisites
The server needs various packages installed on
the system. This list is lifted from the SD card
builder repository.
2023-04-06 21:27:51 +01:00
Richard Bowman
a95baee25f Fix lxml and update README
lxml requires an apt-installed package to work.
I've also mentioned in README that Pipfile
is now pi-specific.
2023-04-06 16:03:20 +01:00
Richard Bowman
d0aad6633c Redo CI to run on armv6
I've refactored the CI substantially, using the
new `extends` keyword to tidy it up a lot.
I have also changed from running the Python
tests on Python:3.7 to using a Raspberry Pi
OS from the Balena project.

This means we are now ONLY locking
dependencies for the Pi, and we are no longer
expecting the Pipfile to work on non-arm
systems.
2023-04-06 15:20:48 +01:00
Richard Bowman
9b7fba55b6 Update CI script to new syntax 2022-08-08 22:22:55 +01:00
Richard
e26331f2ba Disable sandbox - it works! 2021-09-28 10:56:53 +01:00
Richard
c19ff84344 Fix CI configuration 2021-09-28 10:24:02 +01:00
Richard
a0788ac333 Added automatic upload of tags to Zenodo.
Co-authored-by: Kaspar Emanuel <kaspar@monostable.co.uk>
2021-09-28 10:20:39 +01:00
Richard Bowman
a611d4f5ce Deploy OpenAPI description properly 2021-09-21 14:04:08 +01:00
Kaspar Emanuel
b2eb1e0f05 Rename js directory to webapp 2021-09-16 15:13:19 +01:00
Richard
375bcf4e73 fix typo in artifact path 2021-09-16 15:13:19 +01:00
Richard
a42e94ce66 Fix JS build artifact
The JS build step was reporting the JS source folder as an artifact.
I've updated it to use the output folder instead.
2021-09-16 15:13:19 +01:00
Kaspar Emanuel
dd0b8b9a8b Change static folder to js folder in gitlab-ci 2021-09-16 15:13:17 +01:00
Richard
5ba285ac15 Make OpenAPI easier to download from a MR 2021-08-26 23:38:27 +01:00
Richard
b7ca9e095c Build and package static web app on master 2021-08-10 17:48:41 +01:00
Richard
e33e92b43a Generate and use pytest XML reports
This generates XML reports when we run pytest through poe, and
uploads them in the relevant CI stage.

I've also ignored mypy cache files - I'm not sure why this hasn't
been an issue before...
2021-08-10 11:29:09 +01:00
Richard
89f350cf7e Create docs/build directory in CI 2021-07-25 22:56:47 +01:00
Richard Bowman
8eba9d7981 Build and validate OpenAPI YAML description in CI 2021-07-19 10:51:42 +00:00
Richard
3573c64b94 add --deploy flag to pipenv install 2021-06-03 14:38:22 +01:00
Richard Bowman
3ca469cca6 Install dev dependencies
We now install with --dev to make sure development dependencies
are included.  I've also removed "poetry run"
from the "poe" commands, as we are
already in an active virtual environment, so
it's unnecessary (and also broken).

Finally, I added a tarball of the vue app to
the output distribution.
2021-03-29 14:57:18 +01:00
Richard Bowman
faa08f3aef Switch CI to use poetry 2021-03-29 11:26:38 +01:00
Joel Collins
5232b36644 Test cobertura mypy coverage report 2021-01-08 10:05:31 +00:00
Joel Collins
d454255cb6 Run eslint on branches 2020-12-07 14:45:17 +00:00
Joel Collins
7866ec0f47 Static type analysis 2020-11-30 13:36:45 +00:00
Joel Collins
c1e17dec27 Added job explanation comments 2020-11-23 11:49:12 +00:00
Joel Collins
3a90a4217a Fixed JS artifact path 2020-11-23 10:54:38 +00:00