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

Code quality workflows #320

Closed

Conversation

kreneskyp
Copy link
Contributor

@kreneskyp kreneskyp commented Apr 6, 2023

@Torantulino

This PR adds common code quality workflows. Goal is to provide a consistent sandbox environment for both local and github environments.

I based this off of #228 for the Dockerfile fixes it provided.

Changes

  • Github workflows that are optimized for build speed
    • Image is built and cached for re-use on subsequent runs
    • Cache key is based on hash of image inputs for re-use across similar branches
  • Adds makefile for local build and testing
  • Adds docker-compose file for adding other services to sandbox environment
  • Adds pytest, flake8, black, pyright, isort,

Testing:

TODO:

  • need to add mounts for sound device and test that it works on windows, linux, mac

For follow-up

  • I recommend completing this PR and then fixing errors for each test runner in a separate PR. Turn on branch protection for for each as they reach a passing state.

  • It would be worth optimizing the image to make it a bit smaller. It will be a bit friendlier to cache limits.

lcsmas
lcsmas previously approved these changes Apr 6, 2023
Copy link

@lcsmas lcsmas left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@ksylvan ksylvan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nponeccop nponeccop left a comment

Choose a reason for hiding this comment

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

The scope is too big to sensibly merge. Split at least into 5 PRs:

  • gitignore corrections
  • updated docker build
  • github CI
  • readme typos, extra space and reformatting
  • readme changes and additions

@nponeccop
Copy link
Contributor

@kreneskyp Now it's out of date. Resolve the conflicts and split.

This was referenced Apr 10, 2023
@kreneskyp kreneskyp closed this Apr 14, 2023
waynehamadi added a commit that referenced this pull request Sep 5, 2023
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.

4 participants