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

Setup continuous integration #173

Merged
merged 16 commits into from
Aug 23, 2023
Merged

Setup continuous integration #173

merged 16 commits into from
Aug 23, 2023

Conversation

carriepl
Copy link
Collaborator

@carriepl carriepl commented Aug 8, 2023

This PR puts in place some continuous integration for the repo. The way it is setup, every time there is a push to a branch containing this code, it triggers 3 things :
1- Validating the code formatting using Black (here, Black is not configured to change the files, only check them)
2- Validating the import formatting using isort (here, isort is not configured to change the files, only check them)
3- Running the unit tests using pytest
As soon as one step fails, the process stops. Assuming no error, the whole process currently takes about 7-8minutes.

The result of this check is displayed near the PR merge button but, as currently configured, it doesn't prevent a PR from being merged.

@carriepl carriepl force-pushed the black_ci branch 2 times, most recently from ca8cedb to 8ca5ce2 Compare August 8, 2023 14:11
@carriepl carriepl changed the title [WIP] Add github-actions file to check code format Setup continuous integration Aug 8, 2023
Copy link
Owner

@alexhernandezgarcia alexhernandezgarcia left a comment

Choose a reason for hiding this comment

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

Thanks so much for setting this up! I have no experience with Github's CI, so I can't really provide a proper review but what I see looks good to me.

@carriepl carriepl merged commit 7499e8a into main Aug 23, 2023
2 checks passed
@carriepl carriepl deleted the black_ci branch August 23, 2023 14:14
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.

None yet

3 participants