Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 6 additions & 18 deletions .github/workflows/pr.yaml → .github/workflows/on-merge.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
name: Pull Request
name: Testing (main)

on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
- '*.txt'
- '*.html'
- '*.css'
- '*.js'
- '*.png'
- '*.jpg'
- '*.jpeg'
- '*.gif'
- '*.svg'
- '*.example'
push:
branches:
- main
- release-candidate/*
paths-ignore:
- 'docs/**'
- '*.md'
Expand All @@ -35,13 +21,15 @@ on:
- '*.example'
workflow_dispatch: {}

permissions: {}

concurrency:
group: 'ci-${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true

jobs:
linting:
uses: './.github/workflows/lint.yaml'
uses: './.github/workflows/testing-lint.yaml'

unit-tests:
uses: './.github/workflows/testing-unit.yaml'
Expand All @@ -57,7 +45,7 @@ jobs:
secrets: inherit
needs: unit-tests

testing-install:
install-tests:
uses: './.github/workflows/testing-install.yaml'
secrets: inherit

Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/on-pr-dep-change.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Testing (PR - Dependency Change)

on:
pull_request:
paths:
- 'pyproject.toml'
- 'poetry.lock'
workflow_dispatch: {}

permissions: {}

concurrency:
group: 'ci-${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true

jobs:
dependency-tests:
uses: './.github/workflows/testing-dependency.yaml'
secrets: inherit
Comment thread Fixed
38 changes: 38 additions & 0 deletions .github/workflows/on-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Testing (PR)

on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
- '*.txt'
- '*.html'
- '*.css'
- '*.js'
- '*.png'
- '*.jpg'
- '*.jpeg'
- '*.gif'
- '*.svg'
- '*.example'
workflow_dispatch: {}

permissions: {}

concurrency:
group: 'ci-${{ github.workflow }}-${{ github.ref }}'
cancel-in-progress: true

jobs:
linting:
uses: './.github/workflows/testing-lint.yaml'

unit-tests:
Comment thread Fixed
uses: './.github/workflows/testing-unit.yaml'
secrets: inherit

integration-tests:
Comment thread Fixed
uses: './.github/workflows/testing-integration.yaml'
secrets: inherit
needs: unit-tests
Comment thread Fixed
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,11 @@ on:
type: string
default: 'rc1'

permissions:
contents: write
jobs:
# unit-tests:
# uses: './.github/workflows/testing-unit.yaml'
# secrets: inherit
# integration-tests:
# uses: './.github/workflows/testing-integration.yaml'
# secrets: inherit
# dependency-tests:
# uses: './.github/workflows/testing-dependency.yaml'
# secrets: inherit

pypi:
uses: './.github/workflows/publish-to-pypi.yaml'
# needs:
# - unit-tests
# - integration-tests
# - dependency-tests
with:
isPrerelease: true
ref: ${{ inputs.ref }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
- 'minor' # new features, backwards compatible
- 'major' # breaking changes

permissions:
contents: write

jobs:
unit-tests:
uses: './.github/workflows/testing-unit.yaml'
Expand All @@ -28,13 +31,18 @@ jobs:
dependency-tests:
uses: './.github/workflows/testing-dependency.yaml'
secrets: inherit
needs: unit-tests
install-tests:
uses: './.github/workflows/testing-install.yaml'
secrets: inherit

pypi:
uses: './.github/workflows/publish-to-pypi.yaml'
needs:
needs:
- unit-tests
- integration-tests
- dependency-tests
- install-tests
with:
isPrerelease: false
ref: ${{ inputs.ref }}
Expand All @@ -48,5 +56,5 @@ jobs:
docs-publish:
uses: './.github/workflows/build-and-publish-docs.yaml'
secrets: inherit
needs:
needs:
- pypi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: "Lint"
on:
workflow_call: {}

permissions: {}

jobs:
lint:
runs-on: ubuntu-latest
Expand Down