diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index fefcdce..9559060 100755 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -44,12 +44,13 @@ jobs: run: | pip install --upgrade pip pip install -r requirements.txt - - name: Copy test script to temp directory + - name: Copy test script/config to temp directory run: | cp tests/generate_exmpale_results.py $RUNNER_TEMP/ + cp tests/configs/example-config.json $RUNNER_TEMP/ - name: generate outputs run: | - python $RUNNER_TEMP/generate_exmpale_results.py examples/mscclang/ tests/configs/example-config.json $RUNNER_TEMP/tests/pr-outputs/ + python $RUNNER_TEMP/generate_exmpale_results.py examples/mscclang/ $RUNNER_TEMP/example-config.json $RUNNER_TEMP/tests/pr-outputs/ - name: Checkout main branch uses: actions/checkout@v4 with: @@ -60,7 +61,7 @@ jobs: pip install -r requirements.txt - name: generate outputs run: | - python $RUNNER_TEMP/generate_exmpale_results.py examples/mscclang/ tests/configs/example-config.json $RUNNER_TEMP/tests/main-outputs/ + python $RUNNER_TEMP/generate_exmpale_results.py examples/mscclang/ $RUNNER_TEMP/example-config.json $RUNNER_TEMP/tests/main-outputs/ - name: Compare outputs run: | diff -rw $RUNNER_TEMP/tests/main-outputs/ $RUNNER_TEMP/tests/pr-outputs/