Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Implement Basic CI #48

Merged
merged 4 commits into from
Nov 21, 2024
Merged

Implement Basic CI #48

merged 4 commits into from
Nov 21, 2024

Conversation

lukehinds
Copy link

This change introduces a Makefile, which provides

tests: pytest --cov=codegate --cov-report=term-missing
security: bandit -r src/
lint: ruff check .
format: black . && isort .

Along with install and build.

These are then all surfaced within GitHub Actions, along with codecov upload

A release file is there, but this may be removed, amended, depending upon are agreed packaging approach at launch.

There are also a few clean ups around formatting, to make ruff happy.

Closes: #16

Luke Hinds added 2 commits November 21, 2024 11:25
This change introduces a Makefile, which provides

tests: `pytest --cov=codegate --cov-report=term-missing`
security: `bandit -r src/`
lint: `ruff check .`
format: `black . && isort .`

Along with `install` and `build`.

These are then all surfaced within GitHub Actions, along with codecov
upload

A release file is there, but this may be removed, amended, depending
upon are agreed packaging approach at launch

Closes: #16
Copy link
Contributor

@jhrozek jhrozek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested the actions, but the Makefile looks good and works fine. The actions as well - I know there's been a bit of discussion around whether the publish to pypi makes sense, I really can' t tell (I'm open by default, but I don't know what ramifications would that have for this project), but the code itself is good.

@lukehinds lukehinds merged commit 8a50811 into main Nov 21, 2024
2 checks passed
@lukehinds lukehinds deleted the basic-ci branch November 21, 2024 16:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implementation: Set up Continuous Integration (CI)
2 participants