Skip to content

Commit

Permalink
skip testing on dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje committed Jul 6, 2024
1 parent 59768d3 commit 77b27cc
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 77b27cc

Please sign in to comment.