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
Joel Collins
3814e7d1a5
Added poetry to script environment
2020-11-23 10:46:53 +00:00
Joel Collins
f5012cddec
Added eslint and cache to CI
2020-11-23 10:44:41 +00:00
Joel Collins
0d4fdf0be7
Don't allow Black to fail
2020-11-19 12:06:06 +00:00
Joel Collins
94bc49cd5c
Fixed retry
2020-11-17 16:11:02 +00:00
Joel Collins
f15a5c73d1
Allow code quality jobs to retry
2020-11-17 15:15:38 +00:00
Joel Collins
68748a26c5
Never allow pylint failure
2020-10-22 16:00:35 +01:00
Joel Collins
994e83dbeb
Code cleanup
2020-10-14 14:56:29 +00:00
Joel Collins
4fb3fc735e
Move into dist before hashing
2020-09-18 14:09:10 +00:00
Joel Collins
ab48f69fdc
Add SHA256 of server tarball
2020-09-18 13:58:56 +00:00
Joel Collins
e5487b4ad8
Removed submodule stuff
2020-06-25 15:54:54 +01:00
Joel Collins
79259b3fc9
Revert "Remove CI file from frame branch"
...
This reverts commit dac3632c28
2020-05-18 09:54:18 +00:00
Joel Collins
e91b9bf356
Removed content for master branch CI
2020-05-15 16:51:08 +00:00
Joel Collins
e32baa9baa
Explicit submodules
2020-05-15 17:28:18 +01:00
Joel Collins
87a7f91402
Fix poetry path
2020-05-15 17:19:58 +01:00
Joel Collins
4652e0e5f8
Test CI for 'frame' branch
2020-05-15 17:17:53 +01:00