diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c6d4132..ac3bface 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,7 @@ concurrency: jobs: styling: + if: github.event_name == 'push' runs-on: ubuntu-latest steps: - name: checkout @@ -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: @@ -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: @@ -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: