Commit Graph

33 Commits

Author SHA1 Message Date
Chris Peterson ed3d2b3e7d ci: disable lint on noble
Temporarily disable lint ci test on noble until we can determine
regression.
2024-02-13 16:58:48 -08:00
Dan Bungert 9264e23631 workflows: +noble 2024-01-25 14:31:16 -07:00
Dan Bungert 994097ef1f workflows: -focal 2024-01-25 14:07:09 -07:00
Dan Bungert 845d9bb401 workflow: runners to 20.04 2023-10-24 09:22:39 -06:00
Robert Krátký dd24762954 Add docs checks to GH workflows:
* spellcheck
  * linkcheck
  * inclusive-language check
2023-10-23 21:56:36 +02:00
Robert Krátký 9f36439c6d FR-5673: exclude doc/ from CI and Snap checks. 2023-10-11 19:35:07 +02:00
Olivier Gayot a34bce470f workflows: differentiate CI and Snap workflows
The workflows defined respectively in build.yaml and snap.yaml were
both called "CI". On the Github web interface, it resulted in two menus
called "CI" with no easy way to know which is which.

To make things clearer, we now:
 * rename build.yaml -> ci.yaml
 * call "Snap" the workflow defined by snap.yaml

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-10-02 14:38:04 +02:00
Dan Bungert e0cd93881b
Merge pull request #1793 from dbungert/workflow-tidy
workflows: to checkout@v4
2023-09-11 10:24:25 -06:00
Dan Bungert a0c776008b workflows: standardize on checkout@v4 2023-09-11 10:02:28 -06:00
Dan Bungert 7ef514f79a workflows: build a snap 2023-09-11 09:53:27 -06:00
Dan Bungert 57ca6b0af4 workflow: -kinetic 2023-07-27 12:31:40 -06:00
Dan Bungert b71662e726 workflow: add black and isort format checks 2023-07-25 15:28:44 -06:00
Olivier Gayot 5bf3f6a818 workflow: produce a diff of the mypy errors before/after a PR
A new job now runs on PRs. It will automatically run mypy on the target
branch and on the source branch. It will generate a diff of the errors,
showing the new ones and showing the ones that have been fixed.

It will also show a summary with the number of errors before/after the
PR.

Because we have so many false positive, it makes no sense to mark this
job red. So we always make it green (unless mypy can't run).

As for now, it's up to developers to go check if any new error is
introduced.

If a line that used to produce a mypy error gets moved, it will be
reported as:

 * a fixed error
 * a newly introduced error

This is suboptimal and ideally we should have a way to detect moves.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-05-22 10:29:20 +02:00
Dan Bungert f21dac28f2 workflow: +mantic 2023-05-12 07:44:16 -06:00
Dan Bungert a7ecf9c8ee workflow: run both linters always
If the linter is broken in the distro in the devel series but not the
LTS, such as right now, it's interesting to allow the LTS linter to
finish.
2023-03-21 18:44:51 -06:00
Olivier Gayot 9b18f45700 snapcraft: upgrade to core22
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2023-03-16 12:21:44 +01:00
Dan Bungert 4db88f5075 workflow: +lunar 2022-12-15 07:20:44 -07:00
Dan Bungert 5bd940cb0a workflows: -impish 2022-07-18 13:17:58 -06:00
Dan Bungert d8f80d1e33 workflow: +kinetic for linter
Add a second linter container to also lint against the newer python.
2022-07-08 08:31:34 -06:00
Dan Bungert 51492b8f53 workflows: +kinetic 2022-04-25 15:18:31 -06:00
Dan Bungert c260df2894 workflow: -hirsute 2022-02-03 12:21:04 -07:00
Dan Bungert c30cf2d3d3 workflows: +jammy 2021-10-28 18:21:09 -06:00
Dan Bungert 2886a491b9 workflows: drop bionic 2021-10-05 18:39:00 -06:00
Dan Bungert 103f3876b8 workflows: fail-fast false to let other builds run
Use fail-fast: false to let the non-failing matrix builds continue to
run.  Right now impish is timing out early in the process and we can't
see the results for the others.

Co-authored-by: Didier Roche <didrocks@ubuntu.com>
2021-10-05 10:27:08 -06:00
Dan Bungert 6b1700bd47 actions: +accept-existing-contributors for CLA
Canonical employees who have not signed the CLA, and sign commits with
their ubuntu.com alias, fall into a weird gap where their commits are
covered (as employees) but there is no great way for the CLA check to
determine that.
https://github.com/canonical/subiquity/pull/1044#issuecomment-916764603
2021-09-10 07:44:06 -06:00
Dan Bungert f563ab0839 actions: add cla-check 2021-09-09 17:14:05 -06:00
Dan Bungert 7b066f24b6 Remove groovy from CI image matrix 2021-08-09 11:07:05 -06:00
Dan Bungert 1d42f897a1
test-in-lxd: remove privileged container usage (#974)
* test-in-lxd: remove privileged container usage

* Don't assume certain home directory name

* Try enabling groovy
2021-06-07 14:36:37 -06:00
Dan Bungert 1a91ee7a01
github action: s/groovy/impish (#969) 2021-06-02 08:03:16 -06:00
Dan Bungert 4f9de12556
Split unit / integration tests a bit (#956)
Unit tests should be quick and run frequently.
Integration tests can be longer and run less often.
Split them up.
2021-05-17 07:31:29 -06:00
Michael Hudson-Doyle 2d8e288ac4 run lint on ubuntu-20.04 too 2021-02-19 09:37:05 +13:00
Michael Hudson-Doyle 7ce8bdfa81 fix github action, apparently we are running on 20.04 now
this worked yesterday, I promise!
2021-02-19 09:24:20 +13:00
Michael Hudson-Doyle d1afc54389 switch to github actions 2021-02-18 13:01:45 +13:00