Skip to content

Commit

Permalink
make only library tests run when event type is not push
Browse files Browse the repository at this point in the history
  • Loading branch information
TShapinsky committed Sep 13, 2024
1 parent 9099098 commit 348f356
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:
jobs:

styling:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -36,6 +37,7 @@ jobs:
# The "testing" job verifies the base SDK functionality across
# all supported Python versions.
testing:
if: github.event_name == 'push'
needs: styling
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -74,6 +76,7 @@ jobs:
# affect correct operation of notebooks and BACnet scans. Library integration testing
# is a separate job
integration:
if: github.event_name == 'push'
needs: styling
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -112,7 +115,7 @@ jobs:
# These tests detect if changes to ontologies, libraries, models and BuildingMOTIF
# affect correct operation of templates, shapes, and validation
libraries:
if: github.event.review.state == 'approved' || github.event.pull_request.merged
if: github.event.review.state == 'approved' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
needs: styling
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 348f356

Please sign in to comment.