ci: Add CI to main pushes (#307)
This commit is contained in:
@@ -2,7 +2,12 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches:
|
||||||
|
- main # Trigger CI on PRs to main
|
||||||
|
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main # Trigger CI on pushes to main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
exchange:
|
exchange:
|
||||||
|
|||||||
@@ -1,13 +1,21 @@
|
|||||||
---
|
---
|
||||||
name: License Check
|
name: License Check
|
||||||
|
|
||||||
"on":
|
on:
|
||||||
pull_request:
|
pull_request: # Trigger license check on any PRs
|
||||||
paths:
|
paths:
|
||||||
- '**/pyproject.toml'
|
- '**/pyproject.toml'
|
||||||
- '.github/workflows/license-check.yml'
|
- '.github/workflows/license-check.yml'
|
||||||
- '.github/workflows/scripts/check_licenses.py'
|
- '.github/workflows/scripts/check_licenses.py'
|
||||||
|
|
||||||
|
push: # Trigger license check on pushes to main
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths: # TODO: can't DRY unless https://github.com/actions/runner/issues/1182
|
||||||
|
- '**/pyproject.toml'
|
||||||
|
- '.github/workflows/license-check.yml'
|
||||||
|
- '.github/workflows/scripts/check_licenses.py'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-licenses:
|
check-licenses:
|
||||||
name: Check Package Licenses
|
name: Check Package Licenses
|
||||||
|
|||||||
Reference in New Issue
Block a user