mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 20:40:00 +00:00
more fixes
This commit is contained in:
parent
801b3b5788
commit
579ff826f7
1 changed files with 7 additions and 5 deletions
12
.github/workflows/integration-tests.yml
vendored
12
.github/workflows/integration-tests.yml
vendored
|
|
@ -69,9 +69,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
# we need write if rerecord-tests is true
|
# Set write permissions since we might need to commit recordings
|
||||||
contents: ${{ needs.discover-tests.outputs.rerecord-tests == 'true' && 'write' || 'read' }}
|
contents: write
|
||||||
pull-requests: ${{ needs.discover-tests.outputs.rerecord-tests == 'true' && 'write' || 'read' }}
|
pull-requests: write
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Create reusable variable for the re-record tests condition
|
# Create reusable variable for the re-record tests condition
|
||||||
|
|
@ -180,13 +180,15 @@ jobs:
|
||||||
- name: Update the PR if tests/integration/recordings/ has changed
|
- name: Update the PR if tests/integration/recordings/ has changed
|
||||||
if: ${{ env.SHOULD_RECORD == 'true' }}
|
if: ${{ env.SHOULD_RECORD == 'true' }}
|
||||||
run: |
|
run: |
|
||||||
if [ -n "$(git diff --exit-code tests/integration/recordings/)" ]; then
|
if ! git diff --quiet tests/integration/recordings/; then
|
||||||
echo "Updating PR with updated recordings"
|
echo "Updating PR with updated recordings"
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git add tests/integration/recordings/
|
git add tests/integration/recordings/
|
||||||
git commit -m "Update recordings"
|
git commit -m "Update recordings from integration tests"
|
||||||
git push origin HEAD:${{ github.head_ref }}
|
git push origin HEAD:${{ github.head_ref }}
|
||||||
|
else
|
||||||
|
echo "No changes to recordings detected"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Check Storage and Memory Available After Tests
|
- name: Check Storage and Memory Available After Tests
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue