diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml index faae27ae..b94902d5 100644 --- a/.github/workflows/pipeline.yaml +++ b/.github/workflows/pipeline.yaml @@ -32,6 +32,7 @@ jobs: python-version: ["3.9", "3.10", "3.11", "3.12"] fail-fast: false runs-on: ubuntu-latest + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -56,7 +57,7 @@ jobs: run: semgrep scan --config auto --error test-without-llms: - # if: github.actor != 'github-merge-queue[bot]' + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' strategy: matrix: python-version: ["3.9", "3.10", "3.11", "3.12"] @@ -69,7 +70,7 @@ jobs: secrets: inherit # pragma: allowlist secret test-with-anthropic: - # if: github.actor != 'github-merge-queue[bot]' + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' uses: ./.github/workflows/test.yaml with: python-version: "3.9" @@ -80,7 +81,7 @@ jobs: - test-without-llms test-with-azure_oai: - # if: github.actor != 'github-merge-queue[bot]' + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' uses: ./.github/workflows/test.yaml with: python-version: "3.9" @@ -91,7 +92,7 @@ jobs: - test-without-llms test-with-openai: - # if: github.actor != 'github-merge-queue[bot]' + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' uses: ./.github/workflows/test.yaml with: python-version: "3.9" @@ -102,7 +103,7 @@ jobs: - test-without-llms test-with-togetherai: - # if: github.actor != 'github-merge-queue[bot]' + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' uses: ./.github/workflows/test.yaml with: python-version: "3.9" @@ -113,7 +114,7 @@ jobs: - test-without-llms test-with-llm: - # if: github.actor != 'github-merge-queue[bot]' + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' uses: ./.github/workflows/test.yaml with: python-version: "3.9" @@ -128,8 +129,7 @@ jobs: - test-with-togetherai test-macos-latest: - # if: github.actor != 'github-merge-queue[bot]' && github.event.pull_request.draft == false - if: github.event.pull_request.draft == false + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' && github.event.pull_request.draft == false runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -149,8 +149,7 @@ jobs: run: bash scripts/test.sh -m "not (db or nats or anthropic or azure_oai or openai or togetherai or llm)" test-windows-latest: - # if: github.actor != 'github-merge-queue[bot]' && github.event.pull_request.draft == false - if: github.event.pull_request.draft == false + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' && github.event.pull_request.draft == false runs-on: windows-latest steps: - uses: actions/checkout@v4 @@ -170,8 +169,7 @@ jobs: run: bash scripts/test.sh -m "not (db or nats or anthropic or azure_oai or openai or togetherai or llm)" coverage-combine: - # if: github.actor != 'github-merge-queue[bot]' && github.event.pull_request.draft == false - if: github.event.pull_request.draft == false + if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' && github.event.pull_request.draft == false needs: - test-without-llms - test-with-llm @@ -217,7 +215,6 @@ jobs: slug: airtai/fastagency unit_test_wasp: - # if: github.actor != 'github-merge-queue[bot]' runs-on: ubuntu-22.04 permissions: contents: read