Skip to content

Commit

Permalink
[EXPERIMENT] Attempt to fix ion-test-driver workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgregg committed Jun 6, 2024
1 parent c57924f commit 31e6a58
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ion-test-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ jobs:
ref: master
path: ion-test-driver

- name: Set up python3 env
run: python3 -m venv ion-test-driver/venv && . ion-test-driver/venv/bin/activate
- name: Set up python env
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
run: python -m venv ion-test-driver/venv && . ion-test-driver/venv/bin/activate

- name: Pip install
run: pip3 install -r ion-test-driver/requirements.txt && pip3 install -e ion-test-driver
run: pip install -r ion-test-driver/requirements.txt && pip install -e ion-test-driver

- name: Get main branch HEAD sha
run: cd ion-java && echo `git rev-parse --short=7 HEAD` && echo "main=`git rev-parse --short=7 HEAD`" >> $GITHUB_ENV
Expand All @@ -40,7 +44,7 @@ jobs:
&& echo "cur=`git rev-parse --short=7 ${{ github.event.pull_request.head.sha }}`" >> $GITHUB_ENV

- name: Run ion-test-driver
run: python3 ion-test-driver/amazon/iontest/ion_test_driver.py -o output
run: python ion-test-driver/amazon/iontest/ion_test_driver.py -o output
-i ion-java,${{ github.event.pull_request.head.repo.html_url }},${{ github.event.pull_request.head.sha }}
--replace ion-java,https://github.com/amazon-ion/ion-java.git,$main

Expand All @@ -56,7 +60,7 @@ jobs:
- name: Analyze two implementations
continue-on-error: true
id: result-diff
run: python3 ion-test-driver/amazon/iontest/ion_test_driver.py -R
run: python ion-test-driver/amazon/iontest/ion_test_driver.py -R
ion-java,$main ion-java,$cur output/results/ion-test-driver-results.ion

- name: Upload analysis report
Expand Down

0 comments on commit 31e6a58

Please sign in to comment.