-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add reusable actions to create and/or verify a new project #68
Conversation
2f6a58c
to
d77e116
Compare
This really creates some chicken and egg problems.... |
a92dfc6
to
ea78040
Compare
So, I'm trying to get to a place where none of the downstream repos need to have project creation config or pre-rolled out apps for CI. I've removed the need for the config...but the rolled apps will be more difficult since they include specific This really seems quite ripe for a plugin that adds |
I was literally about to break ground on this feature today. tl;dr |
577840c
to
fd87e02
Compare
eb289f2
to
eda4d6a
Compare
- Use `actions/setup-python` to manage caching for `pip` - Stop trying to cache Docker images since it would be unreasonable anyway given the size of images being used - Stop caching cookiecutter templates since downloading as part of a cache or downloading via `git` from GitHub are effectively the same - Continue caching the Briefcase data directory
d2f6816
to
ee00f93
Compare
ee00f93
to
90f94b8
Compare
…thon - At least one of the file from `cache-dependency-path` must exist
4a638c6
to
2cefb4c
Compare
…ses` - Both `app-build-verify` and `app-create-verify` will detect when the current repo is `briefcase-template` and will use the `github.workspace` as the project template - All of cases will use the default propject template
.github/workflows/ci.yml
Outdated
|
||
test-docs-build-verify: | ||
name: Test Verify Docs Build | ||
name: Verify Docs Build Check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor Nit: The task is verifying the docs build; verifying a check is... a bit meta.
name: Verify Docs Build Check | |
name: Verify Docs Build |
- name: Checkout beeware/briefcase-template | ||
uses: actions/checkout@v4.1.1 | ||
with: | ||
repository: rmartin16/briefcase-template # !!!!! TODO:PR: REPLACE ME WITH beeware/briefcase-template !!!!! | ||
ref: gui-plugin-support # !!!!! TODO:PR REMOVE ME !!!!! | ||
path: briefcase-template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't clear why I added this....but it definitely isn't necessary now. It should be removed when the updates are made prior to merging.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh nvm, i see now. This is needed to install the requirements for linting the project. So, it should stick around.
run: | | ||
cd tests/apps/verify-${{ inputs.framework }} | ||
briefcase create linux system --target fedora:37 | ||
briefcase create linux system --target fedora:37 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't need to be fixed in this PR, but flagging that Fedora 37 is EOL in 2 weeks, so we're likely going to need to bump this to 38 or 39 soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 I should take care of this in my next round of PRs. I think some of the versions in the templates (e.g. for org.kde.Platform
) need bumps as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking as approved, conditional on changes that are needed as part of the beeware/briefcase#1524 landing strategy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved for final ship.
Changes
app-create-verify.yml
, for repos to run in CI that have impacts on project creationbeeware/briefcase-template
andbeeware/briefcase
should implement thisBRIEFCASE_REPO: https://github.com/rmartin16/briefcase
BRIEFCASE_REF: gui-plugin-support
BRIEFCASE_TEMPLATE_REPO: https://github.com/rmartin16/briefcase-template
BRIEFCASE_TEMPLATE_REF: gui-plugin-support
PR Checklist: