Skip to content
Closed
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
3 changes: 2 additions & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CodeQL

on: [ push ]
on:
workflow_call:

jobs:
formatting:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Pull Request Checks

on: [ push ]

jobs:
code-quality:
name: Check code quality
uses: ./.github/workflows/codeql.yaml
test:
name: Run tests
uses: ./.github/workflows/test.yaml
8 changes: 1 addition & 7 deletions .github/workflows/publish-test.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
name: Publish to test Pypi

on:
workflow_run:
workflows:
- "Unit tests"
branches:
- main
types:
- completed
workflow_call:

jobs:
publish-package:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Publish to Pypi

on:
release:
types:
- published
workflow_call:

jobs:
publish-test:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/release-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release on Staging

on:
push:
branches:
- main

jobs:
code-quality:
name: Check code quality
uses: ./.github/workflows/codeql.yaml
test:
name: Run tests
uses: ./.github/workflows/test.yaml
publish:
name: Publish staging release
uses: ./.github/workflows/publish-test.yaml
needs: [code-quality, test]
11 changes: 11 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Release

on:
release:
types:
- published

jobs:
publish:
name: Publish release
uses: ./.github/workflows/publish.yaml
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Unit tests

on: [ push ]
on:
workflow_call:

jobs:
unit-test:
Expand Down