Skip to content

Commit

Permalink
fix: CI tests (#28749)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong authored May 16, 2024
1 parent 14a71eb commit 6d25d95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/commit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ jobs:
id: fetch_changes
run: |
cd ivy
git fetch origin main
git diff origin/main HEAD --output="commit-diff.txt"
if [ "${{ github.event_name }}" == "pull_request" ]; then
git fetch origin main
git diff origin/main HEAD --output="commit-diff.txt"
else
git diff HEAD^ HEAD --output="commit-diff.txt"
fi
- name: Install ivy and fetch binaries
run: |
Expand Down
2 changes: 1 addition & 1 deletion scripts/run_tests_from_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

for test_path in set(test_paths):
pytest_command = (
f"pytest {file_path} -p no:warnings --tb=short --backend jax,tensorflow,torch"
f"pytest {test_path} -p no:warnings --tb=short --backend jax,tensorflow,torch"
)
print(f"Running test command: {pytest_command}")
result = subprocess.run(pytest_command, shell=True)
Expand Down

0 comments on commit 6d25d95

Please sign in to comment.