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
2 changed files with 16 additions and 3 deletions
+6 -1
View File
@@ -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:
+10 -2
View File
@@ -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