Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: streamline and add build and codespell targets #74

Merged
merged 10 commits into from
May 6, 2024

Conversation

hnez
Copy link
Member

@hnez hnez commented Apr 25, 2024

This brings the CI closer to our current best practice, as seen in usbmuxctl and lxa-iobus.

What we consider best practice is obviously always in a state of flux, but right now it means having auto-formatting and linting (we already had that) as well as codespell for typo-catching and a build job to make sure the build process works and so we have CI-built artifacts.

TODO before merging:

  • This PR is based on README: fixes, tweaks and re-organisation #73. Not because there are any actual cross-references but more so because it makes keeping track of the different branches easier on my side. It should thus be merged first.

@hnez hnez requested a review from SmithChart April 25, 2024 13:54
@hnez hnez force-pushed the ci-streamline branch 2 times, most recently from 8965a52 to 6c183cf Compare April 29, 2024 07:50
hnez added 10 commits April 29, 2024 12:40
This does not have any immediate benefits but allows us to add build
and publish stages later, that depends on all the qa steps to complete
successfully.

Signed-off-by: Leonard Göhrs <[email protected]>
This makes sure we always use the exact version we have installed and
not e.g. another version installed for another python version.

Signed-off-by: Leonard Göhrs <[email protected]>
The environment is already used for more quality assurance tasks than
just running pytest tests, making QA a more fitting name.

Signed-off-by: Leonard Göhrs <[email protected]>
In make .PHONY targets are targets that do not generate a
file/directory/filesystem object with the same name as the rule.

This applies to most of our rules.

Signed-off-by: Leonard Göhrs <[email protected]>
This allows calling individual qa tests interactively via e.g.:

  $ make qa-pytest

while still being able to run all of them via:

  $ make qa

Signed-off-by: Leonard Göhrs <[email protected]>
This both simplifies our CI pipeline and also makes it so that the
local checks match the rules run in the CI are exactly the same.

Signed-off-by: Leonard Göhrs <[email protected]>
This will allow us to have a publish job later on that uses the
built artifacts and publishes them on pypi.org.

Signed-off-by: Leonard Göhrs <[email protected]>
Codespell has proven useful in other projects,
so lets use it here as well.

Signed-off-by: Leonard Göhrs <[email protected]>
@SmithChart SmithChart merged commit 57e91b2 into linux-automation:master May 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants