diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index bfe1ffe762..f0797f9803 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -3,7 +3,7 @@ name: Evmone Coverage Report on: pull_request: paths: - - 'converted-ethereum-tests.txt' # This triggers the workflow only for changes in file.txt + - 'tests/**' # This triggers the workflow for any changes in the tests folder jobs: evmone-coverage-diff: @@ -78,8 +78,11 @@ jobs: files=$(echo "$lines" | grep -oP '(?<=\+).+\.json') if [ -z "$files" ]; then - echo "Error: No new JSON files found in converted-ethereum-tests.txt" - exit 1 + echo "No new lines in converted-ethereum-tests.txt, check updates instead:" + echo "converted_skip=true" >> $GITHUB_ENV + exit 0 + else + echo "converted_skip=false" >> $GITHUB_ENV fi for file in $files; do @@ -118,7 +121,7 @@ jobs: exit 1 fi done - + # This command diffs the .py scripts introduced by a PR - name: Parse and fill introduced test sources @@ -182,6 +185,10 @@ jobs: find fixtures/state_tests -type f -name "*.json" -exec cp {} $PATCH_TEST_PATH \; find fixtures/eof_tests -type f -name "*.json" -exec cp {} $PATCH_TEST_PATH \; + if [ "${{ env.converted_skip }}" == 'true' ]; then + echo "Try to detect the same files in revision before PR" + fi + - name: Print tests that will be covered if: ${{ env.retesteth_skip == 'false' || matrix.driver == 'native' }} run: |