Skip to content

Bootstrap test infrastructure and add a very basic test#87

Merged
FlipperPA merged 9 commits intodjango-commons:mainfrom
browniebroke:ci/setup-gh-actions
Sep 28, 2024
Merged

Bootstrap test infrastructure and add a very basic test#87
FlipperPA merged 9 commits intodjango-commons:mainfrom
browniebroke:ci/setup-gh-actions

Conversation

@browniebroke
Copy link
Copy Markdown
Member

Following on:

Add the test infrastructure using tox and github actions, taking inspiration from other projects in @django-commons

It might be beneficial to not add too many tests in this first PR, this way we should be able to get more folks to contribute in separate PRs to test different things.

Let me know if the approach makes sense cc @tim-schilling in case you see something that goes against something in the org

@browniebroke browniebroke marked this pull request as ready for review September 28, 2024 16:18
on:
pull_request:
push:
branches: [main]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Removed this to see the result on the CI on my fork: https://github.com/browniebroke/drf-excel/actions

GitHub actions don't run new PR workflow added from a forks (I think)


on:
pull_request:
push:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Perhaps better to add back before merging:

Suggested change
push:
push:
branches: [main]

@@ -0,0 +1,13 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I didn't add anything else like ruff yet as I'd like to limit the amount of code changes in here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think that's the minimal setting file required for a project to use drf-excel

@FlipperPA
Copy link
Copy Markdown
Member

This is great, thanks for getting this started, @browniebroke!

@FlipperPA FlipperPA merged commit 9003f7e into django-commons:main Sep 28, 2024
@browniebroke browniebroke deleted the ci/setup-gh-actions branch September 28, 2024 17:56
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.

2 participants