Skip to content

Commit

Permalink
. cannot use to test session name
Browse files Browse the repository at this point in the history
  • Loading branch information
Konboi committed Aug 9, 2024
1 parent 49c4ea6 commit 19b6e12
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/record-build-and-test-results-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -83,15 +87,15 @@ 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
with:
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()

0 comments on commit 19b6e12

Please sign in to comment.