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 <[email protected]>
  • Loading branch information
gotmax23 and webknjaz committed Aug 21, 2023
1 parent 70775c5 commit c074d63
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 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 }}"
3 changes: 1 addition & 2 deletions .github/workflows/pip-compile-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ jobs:
message: "ci: refresh docs build dependencies"
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"
nox-args: "-e 'pip-compile-3.10(requirements)' 'pip-compile-3.10(requirements-relaxed)'"
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 c074d63

Please sign in to comment.