-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): first attempt at reusable ci workflows (#6)
- Loading branch information
Buck Evan
committed
Oct 10, 2023
1 parent
fcbd96e
commit 5069ad1
Showing
4 changed files
with
80 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI for a python package | ||
on: | ||
workflow_call: | ||
inputs: &inputs | ||
subdir: | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
<<: *inputs | ||
|
||
defaults: | ||
run: | ||
# the default default is: | ||
# bash --noprofile --norc -eo pipefail {0} | ||
shell: bash --noprofile --norc -eo pipefail -ux {0} | ||
working-directory: ${{ inputs.subdir }} | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 2 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout code | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- run: make env | ||
- name: Run linter | ||
run: make lint | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 3 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout code | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- run: make env | ||
- run: make test |
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,17 @@ | ||
name: CI for the sentry_jsonish package | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- release-sentry_jsonish/** | ||
paths: | ||
- sentry_jsonish/** | ||
pull_request: | ||
paths: | ||
- sentry_jsonish/** | ||
|
||
jobs: | ||
ci: | ||
uses: ./ci-reusable.yaml | ||
with: | ||
subdir: sentry_jsonish |
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,17 @@ | ||
name: CI for the sentry_jsonish package | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- release-sentry_jsonish/** | ||
paths: | ||
- sentry_jsonish/** | ||
pull_request: | ||
paths: | ||
- sentry_jsonish/** | ||
|
||
jobs: | ||
ci: | ||
uses: ./ci-reusable.yaml | ||
with: | ||
subdir: sentry_jsonish |
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