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

Adding Pipeline to Repo #35

Merged
merged 14 commits into from
Oct 21, 2024
Merged

Adding Pipeline to Repo #35

merged 14 commits into from
Oct 21, 2024

Conversation

JackMcPhillips1543
Copy link
Collaborator

Fixes #29

  • Creating CI/CD pipeline for repo
  • Starts up virtual env
  • Run frontend and backend test
  • Lints frontend and backend

Why was the change needed:

  • Needed a pipeline
  • Needed to implement tests
  • Needed a way to check the quality of the code

How was it changed:

  • Added .yml file
  • downloaded pylint, and npm lint
  • moved test files to one place

@@ -34,7 +34,7 @@ function App() {

websocket.current.onclose = (event) => {
console.log("WebSocket connection closed: ", event);
websocketConnected = false;
// websocketConnected = false;
};

return () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Proper state management for WebSocket connection in frontend.

isort==5.13.2
pylint==3.3.1
tomlkit==0.13.2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good job setting up the CI workflow for both building and linting! The matrix and Python setup is clear and structured well.

source env/bin/activate
cd ${{github.workspace}}/backend
pytest -s websocketUnitTest.py

Copy link
Collaborator

Choose a reason for hiding this comment

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

Great test for WebSocket! Check edge cases too

@JackMcPhillips1543 JackMcPhillips1543 added the enhancement New feature or request label Oct 17, 2024
Copy link
Collaborator

@git-voo git-voo left a comment

Choose a reason for hiding this comment

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

Great job!
The follow up task would be to refactor the codes in our codebase to pass linter tests and ensure the pipeline runs successfully. But that's an independent issue outside the scope of your PR

@git-voo git-voo merged commit 966ffd2 into main Oct 21, 2024
2 checks passed
@git-voo git-voo deleted the feature/GHApipeline branch October 21, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create CI/CD pipeline for App
3 participants