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

test new version #82

Merged
merged 3 commits into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 16 additions & 18 deletions .github/workflows/record-build-and-test-results-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ name: record-build-and-test-results-action
on:
push:
branches:
- main
- github-test-result-action # for debug
- master
paths:
- "launchable-test-result//**"
- ".github/workflows/record-build-and-test-results-action.yml" # for debug
- ".github/workflows/record-build-and-test-results-action.yml"

pull_request:
branches:
- main
- github-test-result-action # for debug
- master
paths:
- "launchable-test-result//**"
- ".github/workflows/record-build-and-test-results-action.yml" # for debug
- ".github/workflows/record-build-and-test-results-action.yml"

env:
LAUNCHABLE_TOKEN: ${{ secrets.LAUNCHABLE_TOKEN_PYTEST }}
Expand All @@ -29,13 +27,13 @@ jobs:
with:
fetch-depth: 0
- name: Record build and test results action
uses: launchableinc/record-build-and-test-results-action@support-flavor-and-test-session-name-options
uses: launchableinc/record-build-and-test-results-action@v1.1.0
with:
report_path: launchable-test-result/test-results.xml
test_runner: pytest
if: always()
- name: Record build and test results action with no build
uses: launchableinc/record-build-and-test-results-action@support-flavor-and-test-session-name-options
uses: launchableinc/record-build-and-test-results-action@v1.1.0
with:
report_path: launchable-test-result/test-results.xml
test_runner: pytest
Expand All @@ -48,30 +46,30 @@ jobs:
with:
fetch-depth: 0
- name: Record build and test results action with test_session_name option
uses: launchableinc/record-build-and-test-results-action@support-flavor-and-test-session-name-options
uses: launchableinc/record-build-and-test-results-action@v1.1.0
with:
report_path: launchable-test-result/test-results.xml
test_runner: pytest
test_session_name: ${{ github.run_id }}
if: always()
- name: Record build and test results action with test_session_name option part 2
uses: launchableinc/record-build-and-test-results-action@support-flavor-and-test-session-name-options
uses: launchableinc/record-build-and-test-results-action@v1.1.0
with:
report_path: launchable-test-result/test-results.xml
test_runner: pytest
test_session_name: ${{ github.run_id }}
if: always()
- name: Record build and test results action with custom build name
uses: launchableinc/record-build-and-test-results-action@support-flavor-and-test-session-name-options
uses: launchableinc/record-build-and-test-results-action@v1.1.0
with:
report_path: launchable-test-result/test-results.xml
test_runner: pytest
build_name: ${{ github.run_id }}-${{ github.job }}
matrix-case:
strategy:
matrix:
python_version: ['3.12', '3.11', '3.10']
os: ['ubuntu-latest', 'windows-latest']
python_version: ["3.12", "3.11", "3.10"]
os: ["ubuntu-latest", "windows-latest"]
runs-on: ubuntu-latest
steps:
- name: Replace python version's dot to hyphen
Expand All @@ -82,20 +80,20 @@ jobs:
with:
fetch-depth: 0
- name: Record build and test results action with custom build name and test_session_name option with flavor
uses: launchableinc/record-build-and-test-results-action@support-flavor-and-test-session-name-options
uses: launchableinc/record-build-and-test-results-action@v1.1.0
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 }}-${{ env.python_version }}
flavors: 'build_name=true, test_session_name=true, flavors=true, count=1, python_version=${{ matrix.python_version }}, os=${{ matrix.os }}'
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
uses: launchableinc/record-build-and-test-results-action@v1.1.0
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 }}-${{ env.python_version }}
flavors: 'build_name=true, test_session_name=true, flavors=true, count=2, python_version=${{ matrix.python_version }}, os=${{ matrix.os }}'
if: always()
flavors: "build_name=true, test_session_name=true, flavors=true, count=2, python_version=${{ matrix.python_version }}, os=${{ matrix.os }}"
if: always()
Loading