diff --git a/.github/workflows/record-build-and-test-results-action.yml b/.github/workflows/record-build-and-test-results-action.yml index 0e2124f..13192e9 100644 --- a/.github/workflows/record-build-and-test-results-action.yml +++ b/.github/workflows/record-build-and-test-results-action.yml @@ -74,6 +74,10 @@ jobs: os: ['ubuntu-latest', 'windows-latest'] runs-on: ubuntu-latest steps: + - name: Replace python version's dot to hyphen + run: | + python_version=$(echo "${{ matrix.python_version }}" | sed 's/\./-/g') + echo "python_version=$python_version" >> $GITHUB_ENV - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -83,8 +87,8 @@ jobs: report_path: launchable-test-result/test-results.xml test_runner: pytest build_name: ${{ github.run_id }}-${{ github.job }} - test_session_name: ${{ github.run_id }}-${{ github.job }}-${{ matrix.os }}-${{ matrix.python_version }}-1 - flavors: 'build_name=true, test_session_name=true, flavors=true, count=1, python_version=${{ matrix.python_version//./- }}, os=${{ matrix.os }}' + test_session_name: ${{ github.run_id }}-${{ github.job }}-${{ matrix.os }}-${{ env.python_version }}-1 + flavors: 'build_name=true, test_session_name=true, flavors=true, count=1, python_version=${{ matrix.python_version }}, os=${{ matrix.os }}' if: always() - name: Record build and test results action with custom build name and test_session_name option with flavor part 2 uses: launchableinc/record-build-and-test-results-action@support-flavor-and-test-session-name-options @@ -92,6 +96,6 @@ jobs: report_path: launchable-test-result/test-results.xml test_runner: pytest build_name: ${{ github.run_id }}-${{ github.job }} - test_session_name: ${{ github.run_id }}-${{ github.job }}-${{ matrix.os }}-${{ matrix.python_version }}-2 - flavors: 'build_name=true, test_session_name=true, flavors=true, count=2, python_version=${{ matrix.python_version//./- }}, os=${{ matrix.os }}' + test_session_name: ${{ github.run_id }}-${{ github.job }}-${{ matrix.os }}-${{ env.python_version }}-2 + flavors: 'build_name=true, test_session_name=true, flavors=true, count=2, python_version=${{ matrix.python_version }}, os=${{ matrix.os }}' if: always() \ No newline at end of file