ci: Add CI to main pushes (#307)

This commit is contained in:
Leo Ribeiro 2024-11-21 17:51:43 -05:00 committed by GitHub
parent 924239fc3c
commit 470a624d6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 3 deletions

View file

@ -2,7 +2,12 @@ name: CI
on:
pull_request:
branches: [main]
branches:
- main # Trigger CI on PRs to main
push:
branches:
- main # Trigger CI on pushes to main
jobs:
exchange:

View file

@ -1,13 +1,21 @@
---
name: License Check
"on":
pull_request:
on:
pull_request: # Trigger license check on any PRs
paths:
- '**/pyproject.toml'
- '.github/workflows/license-check.yml'
- '.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:
check-licenses:
name: Check Package Licenses