Skip to content

Commit

Permalink
Upload coverage file to codecov (#497)
Browse files Browse the repository at this point in the history
* updated pipeline

* upgrade version

* upgraded packages

* skipping tests on automatic pushes

* skipping tests on automatic pushes

* skipping tests on automatic pushes

* skipping tests on automatic pushes

* skipped test in CI

* merge conflict resolve
  • Loading branch information
davorrunje authored Jul 5, 2024
1 parent 4eed987 commit 12f89ac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ env:

jobs:
detect-deployment-environment:
if: github.actor != 'github-merge-queue'
runs-on: ubuntu-latest
outputs:
environment: ${{ steps.set-env.outputs.environment }}
Expand All @@ -27,7 +26,7 @@ jobs:
echo "environment=none" >> $GITHUB_OUTPUT
fi
static_analysis:
if: github.actor != 'github-merge-queue'
if: github.actor != 'github-merge-queue[bot]'
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand Down Expand Up @@ -57,7 +56,7 @@ jobs:
run: semgrep scan --config auto --error

test-without-llms:
if: github.actor != 'github-merge-queue'
if: github.actor != 'github-merge-queue[bot]'
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
Expand All @@ -70,7 +69,7 @@ jobs:
secrets: inherit # pragma: allowlist secret

test-with-anthropic:
if: github.actor != 'github-merge-queue'
if: github.actor != 'github-merge-queue[bot]'
uses: ./.github/workflows/test.yaml
with:
python-version: "3.9"
Expand All @@ -81,7 +80,7 @@ jobs:
- test-without-llms

test-with-azure_oai:
if: github.actor != 'github-merge-queue'
if: github.actor != 'github-merge-queue[bot]'
uses: ./.github/workflows/test.yaml
with:
python-version: "3.9"
Expand All @@ -92,7 +91,7 @@ jobs:
- test-without-llms

test-with-openai:
if: github.actor != 'github-merge-queue'
if: github.actor != 'github-merge-queue[bot]'
uses: ./.github/workflows/test.yaml
with:
python-version: "3.9"
Expand All @@ -103,7 +102,7 @@ jobs:
- test-without-llms

test-with-togetherai:
if: github.actor != 'github-merge-queue'
if: github.actor != 'github-merge-queue[bot]'
uses: ./.github/workflows/test.yaml
with:
python-version: "3.9"
Expand All @@ -114,7 +113,7 @@ jobs:
- test-without-llms

test-with-llm:
if: github.actor != 'github-merge-queue'
if: github.actor != 'github-merge-queue[bot]'
uses: ./.github/workflows/test.yaml
with:
python-version: "3.9"
Expand All @@ -129,7 +128,7 @@ jobs:
- test-with-togetherai

test-macos-latest:
if: github.actor != 'github-merge-queue' && github.event.pull_request.draft == false
if: github.actor != 'github-merge-queue[bot]' && github.event.pull_request.draft == false
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -149,7 +148,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' && github.event.pull_request.draft == false
if: github.actor != 'github-merge-queue[bot]' && github.event.pull_request.draft == false
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -169,7 +168,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' && github.event.pull_request.draft == false
if: github.actor != 'github-merge-queue[bot]' && github.event.pull_request.draft == false
needs:
- test-without-llms
- test-with-llm
Expand Down Expand Up @@ -208,8 +207,14 @@ jobs:
name: coverage-html
path: htmlcov

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: airtai/fastagency

unit_test_wasp:
if: github.actor != 'github-merge-queue'
if: github.actor != 'github-merge-queue[bot]'
runs-on: ubuntu-22.04
permissions:
contents: read
Expand Down Expand Up @@ -312,7 +317,7 @@ jobs:
run: docker push ghcr.io/$GITHUB_REPOSITORY --all-tags

pre-commit-check:
if: github.actor != 'github-merge-queue'
if: github.actor != 'github-merge-queue[bot]'
runs-on: ubuntu-latest
env:
SKIP: "static-analysis"
Expand All @@ -333,7 +338,7 @@ jobs:

# https://github.com/marketplace/actions/alls-green#why
check: # This job does nothing and is only used for the branch protection
if: github.actor != 'github-merge-queue' && github.event.pull_request.draft == false
if: github.actor != 'github-merge-queue[bot]' && github.event.pull_request.draft == false

needs:
- static_analysis
Expand Down
2 changes: 1 addition & 1 deletion tests/models/agents/test_web_surfer_autogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def test_web_surfer_chat_constructor(
"Visit https://en.wikipedia.org/wiki/Zagreb and tell me when Zagreb became a free royal city.",
# "What is the most expensive NVIDIA GPU on https://www.alternate.de/ and how much it costs?",
# "Compile a list of news headlines under section 'Politika i kriminal' on telegram.hr.",
"What is the single the most newsworthy story today?",
# "What is the single the most newsworthy story today?",
# "Given that weather forcast today is warm and sunny, what would be the best way to spend an evening in Zagreb according to the weather forecast?",
],
)
Expand Down

0 comments on commit 12f89ac

Please sign in to comment.