Skip to content

Commit

Permalink
skip api test for all forked pr (#544)
Browse files Browse the repository at this point in the history
<!-- Thank you for your contribution! -->
<!-- Unless your change is trivial, please create an issue to discuss
the change before creating a PR -->

## Change Summary
skip api test for all forked pr
<!-- Please give a short summary of the changes. -->

## Related issue number

<!-- WARNING: please use "fix #123" style references so the issue is
closed when this PR is merged. -->

## Checklist

* [ ] The pull request title is a good summary of the changes - it will
be used in the changelog
* [ ] Unit tests for the changes exist
* [ ] Run `pre-commit install` and `pre-commit run --all-files` before
git commit, and passed lint check.
* [ ] Some cases need DASHSCOPE_TOKEN_API to pass the Unit Tests, I have
at least **pass the Unit tests on local**
* [ ] Documentation reflects the changes where applicable
* [ ] My PR is ready to review, **please add a comment including the
phrase "please review" to assign reviewers**
  • Loading branch information
Zhikaiiii authored Jul 26, 2024
2 parents be44d31 + 52b1dfa commit 6b7bb78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_callback.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import os

import pytest
from modelscope_agent.agents.role_play import RolePlay
from modelscope_agent.callbacks.run_state import RunStateCallback
from modelscope_agent.memory import MemoryWithRag
from modelscope_agent.tools.base import TOOL_REGISTRY

from .ut_utils import MockTool

IS_FORKED_PR = os.getenv('IS_FORKED_PR', 'false') == 'true'


@pytest.mark.skipif(IS_FORKED_PR, reason='only run modelscope-agent main repo')
def test_llm_run_state(mocker):
llm_config = {
'model': 'qwen-max',
Expand Down

0 comments on commit 6b7bb78

Please sign in to comment.