Skip to content

Commit

Permalink
ci: make nox a reusable workflow
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
  • Loading branch information
gotmax23 and webknjaz committed Aug 21, 2023
1 parent a63e613 commit b1d0faa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches-ignore:
- 'patchback/**'
- 'pip-compile/**'
pull_request:
workflow_dispatch:

Expand Down Expand Up @@ -55,3 +56,6 @@ jobs:
- name: Run rstcheck Sanity
run: |
python tests/sanity.py rstcheck
nox:
uses: ./.github/workflows/reusable-nox.yml
1 change: 0 additions & 1 deletion .github/workflows/pip-compile-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ jobs:
-e 'pip-compile-3.10(formatters)'
'pip-compile-3.10(typing)'
'pip-compile-3.10(static)'
changed-files: "tests/*.txt"
reset-branch: "${{ inputs.reset-branch || false }}"
1 change: 0 additions & 1 deletion .github/workflows/pip-compile-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ jobs:
base-branch: "${{ inputs.base-branch || 'devel' }}"
pr-branch: "${{ inputs.pr-branch || 'pip-compile/devel/docs' }}"
nox-args: "-e 'pip-compile-3.10(requirements)'"
changed-files: "tests/*.txt"
reset-branch: "${{ inputs.reset-branch || false }}"
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
name: nox

"on":
push:
branches-ignore:
- 'patchback/**'
pull_request:
workflow_dispatch:
workflow_call:

jobs:
nox:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/reusable-pip-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ name: "Refresh pinned dependencies"
type: string
required: true
changed-files:
default: "tests/*.txt"
type: string
required: true
reset-branch:
Expand Down

0 comments on commit b1d0faa

Please sign in to comment.