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

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
Contributor

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

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 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.

Implementation: Set up Continuous Integration (CI)
2 participants