Skip to content

Commit

Permalink
use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Konboi committed Aug 9, 2024
1 parent a3813ee commit 49c4ea6
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 @@ -68,6 +68,10 @@ jobs:
test_runner: pytest
build_name: ${{ github.run_id }}-${{ github.job }}
advanced-cases:
strategy:
matrix:
python_version: ['3.12', '3.11', '3.10']
os: ['ubuntu-latest', 'windows-latest']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -79,15 +83,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 }}-1
flavors: 'build_name=true, test_session_name=true, flavors=true, count=1'
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 }}'
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 }}-2
flavors: 'build_name=true, test_session_name=true, flavors=true, count=2'
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 }}'
if: always()

0 comments on commit 49c4ea6

Please sign in to comment.