-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make gha checks (docs, build, etc) triggered by main workflows
Black, Isort, Build, Docs and API checks can now only be launched by other workflows Add a workflow to check commits on branch other than main Regroup the workflows for PR Regroup the workflows for the main branch Fix README.md Update CHANGELOG
- Loading branch information
Showing
13 changed files
with
104 additions
and
71 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
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,19 @@ | ||
name: Check branch commit | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' # matches every branch ... | ||
- '!main' # ... that is not main | ||
|
||
jobs: | ||
isort: | ||
uses: ./.github/workflows/isort.yml | ||
black: | ||
uses: ./.github/workflows/black.yml | ||
build: | ||
uses: ./.github/workflows/build.yml | ||
docs: | ||
uses: ./.github/workflows/docs.yml | ||
api: | ||
uses: ./.github/workflows/api.yml |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Run isort | ||
on: | ||
- push | ||
|
||
on: [workflow_call] | ||
|
||
jobs: | ||
isort: | ||
|
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,32 @@ | ||
name: Validate Pull Request | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, edited] | ||
|
||
jobs: | ||
validate-pr-title: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: PR Conventional Commit Validation | ||
uses: ytanikin/[email protected] | ||
with: | ||
task_types: '["feat","fix","docs","test","ci","refactor","perf","revert"]' | ||
|
||
preview-docs: | ||
runs-on: ubuntu-latest | ||
if: github.event.action != 'edited' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check modifications on docs | ||
uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
docs: # name of the filter | ||
- 'docs/**' | ||
- name: Preview Readthedocs | ||
if: steps.filter.outputs.docs == 'true' | ||
uses: readthedocs/actions/preview@v1 | ||
with: | ||
project-slug: "bsb" |
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