-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates repo to match changes to template (#25)
* Removes _copy_without_render * Updates reference commit * Adds template sync workflow * Fixes conflicts * Fixes conflicts
- Loading branch information
1 parent
ede6f9d
commit ea055d5
Showing
11 changed files
with
213 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Publish docs | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
build-and-publish-docs: | ||
name: Build and publish docs | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build docs | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade --upgrade-strategy eager -e .[dev] | ||
mkdocs build | ||
- name: Publish docs | ||
uses: JamesIves/github-pages-deploy-action@v4.4.0 | ||
with: | ||
branch: docs | ||
folder: site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Template Synchronization | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-for-update: | ||
name: Check for template update | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install cruft | ||
run: | | ||
pip install "cookiecutter>=1.7.3,<2.0.0" cruft | ||
- name: Check for update' | ||
id: check | ||
run: | | ||
cruft check | ||
submit-update-pr: | ||
name: Submit update PR | ||
runs-on: ubuntu-latest | ||
needs: [check-for-update] | ||
if: failure() | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install cruft | ||
run: pip install cruft | ||
|
||
- name: Perform updates | ||
run: cruft update -y | ||
|
||
- name: Submit PR | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
commit-message: Updating collection with changes to prefect-collection-template | ||
branch: sync-with-template | ||
delete-branch: true | ||
title: Sync Collection with changes to prefect-collection-template | ||
body: | | ||
Automated PR created to propagate changes from prefect-collection-template to this collection | ||
Feel free to make any necessary changes to this PR before merging. | ||
labels: | | ||
template sync | ||
automated pr |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ mock; python_version < '3.8' | |
mkdocs-gen-files | ||
interrogate | ||
coverage | ||
respx | ||
respx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
prefect>=2.0b2 | ||
prefect>=2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters