Skip to content

Commit

Permalink
Skip tests for PRs from Forks (#230)
Browse files Browse the repository at this point in the history
* skip tests for PRs from forks
  • Loading branch information
sainivedh authored Nov 29, 2023
1 parent 0136107 commit 4459228
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ jobs:
export PYTHONPATH=.
export CLARIFAI_USER_ID="$(python scripts/key_for_tests.py --get-userid)"
export CLARIFAI_PAT="$(python scripts/key_for_tests.py --create-pat)"
pytest tests/
if [ "${{ github.event.pull_request.head.repo.full_name }}" = "${{ github.repository }}" ]; then
pytest tests/
else
echo "Skipping tests for PRs from forks"
fi

0 comments on commit 4459228

Please sign in to comment.