Adds PRs to the Test Execution GithubAction
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -2,7 +2,10 @@ name: Test and Publish
|
|||||||
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -11,6 +14,8 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: run-tests
|
name: run-tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name != 'pull_request' ||
|
||||||
|
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
|
|||||||
Reference in New Issue
Block a user