Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.16.0 syntax error #586

Closed
redikus3q opened this issue Mar 21, 2024 · 6 comments · Fixed by #587
Closed

2.16.0 syntax error #586

redikus3q opened this issue Mar 21, 2024 · 6 comments · Fixed by #587

Comments

@redikus3q
Copy link

redikus3q commented Mar 21, 2024

Hey!

I have a workflow set up with some basic pyhton test file that runs with pytest and generates a junit.xml file. I have been using EnricoMi for about a year now to publish results with no issues, but since the update for 2.16.0 hit, I've been running into the following error:
image

/c/Users/ADF VM/AppData/Local/Programs/Python/Python310/python3
Python that creates venv: C:\Users\ADF VM\AppData\Local\Programs\Python\Python310\python3.exe
C:\Users\ADF: line 1: syntax error near unexpected token `('
C:\Users\ADF: line 1: `[26B8:26C8][2023-06-15T14:09:00]i001: Burn v3.10.4.4718, Windows v10.0 (Build 22621: Service Pack 0), path: C:\Windows\Temp\{92DCA7E6-3972-44A9-AE81-C061C4779222}\.cr\VC_redist.x[64](https://github.com/adfdesktop/launch-autotests/actions/runs/8376472318/job/22936250951#step:2:66).exe'
  Error: Process completed with exit code 2.

The issue can be solved by manually setting the version of the action to the previous one, however it'd probably be best to keep using the latest one.

uses: EnricoMi/publish-unit-test-result-action/windows/bash@v2.15.1

I'm running Python 3.10.9 on a self-hosted runner with Windows 11, not sure what other info to provide. My yaml is below. Thanks!

name: TESTS
on:
  workflow_dispatch:
permissions: write-all
jobs:
  drive-tests:
    runs-on: [self-hosted, drive-image-tests]
    timeout-minutes: 1440
    steps:
      - name: Run tests
        shell: powershell
        run: |
          cd 'D:/tests'
          pytest .\test.py -s --tb=no --junitxml=junit.xml
          
      - name: Publish test results
        uses: EnricoMi/publish-unit-test-result-action/windows/bash@v2
        if: always()
        with:
          files: |
            D:/tests/junit.xml
@kvasyliev32
Copy link

Hi all. I have the similar issue. Downgrading the version helped me too
image

@EnricoMi
Copy link
Owner

Thanks for reporting, issue found, fix is #587.

@EnricoMi
Copy link
Owner

Fix release is imminent.

@EnricoMi
Copy link
Owner

Fix released.

@matteo-savore-deltatre
Copy link

Hi everyone, on my self hosted still not norking, what i can do ?
image

@EnricoMi
Copy link
Owner

I have created a new issue to track this: #602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants