|
8 | 8 | # * test_type: The testing type. In generally, it only has 2 options: 'unit-test' and 'integration-test'. |
9 | 9 | # * all_test_items_paths: The target paths of test items under test. |
10 | 10 | # * install_dependency_with_group: Install the dependency by UV configuration with dependency group setting. This parameter receive the dependency group naming. |
| 11 | +# * python-versions: JSON array of Python versions to test against. Default: '["3.13"]' |
| 12 | +# * operating-systems: JSON array of operating systems to test on. Default: '["ubuntu-latest", "ubuntu-22.04", "macos-latest", "macos-14"]' |
11 | 13 | # |
12 | 14 | # Workflow running output: |
13 | 15 | # No, but it would save the testing coverage reports to provide after-process to organize and record. |
|
57 | 59 | type: number |
58 | 60 | required: false |
59 | 61 | default: 0 |
| 62 | + python-versions: |
| 63 | + description: "JSON array of Python versions to test against." |
| 64 | + type: string |
| 65 | + required: false |
| 66 | + default: '["3.13"]' |
| 67 | + operating-systems: |
| 68 | + description: "JSON array of operating systems to test on." |
| 69 | + type: string |
| 70 | + required: false |
| 71 | + default: '["ubuntu-latest", "ubuntu-22.04", "macos-latest", "macos-14"]' |
60 | 72 | secrets: |
61 | 73 | e2e_test_api_token: |
62 | 74 | description: "Set the API token for end-to-end test if it needs." |
|
67 | 79 | strategy: |
68 | 80 | max-parallel: ${{ inputs.max-parallel }} |
69 | 81 | matrix: |
70 | | - python-version: ['3.13'] |
71 | | - os: [ubuntu-latest,ubuntu-22.04,macos-latest,macos-14] |
| 82 | + python-version: ${{fromJson(inputs.python-versions)}} |
| 83 | + os: ${{fromJson(inputs.operating-systems)}} |
72 | 84 | test-path: ${{fromJson(inputs.all_test_items_paths)}} |
73 | 85 | fail-fast: false # Fix issue in GitHub Action: FailFast: cancelling since parallel instance has failed |
74 | 86 |
|
|
96 | 108 | run: | |
97 | 109 | uv pip install --group=${{ inputs.install_dependency_with_group }} |
98 | 110 |
|
99 | | - - name: Verify the ClickUp API token |
| 111 | + - name: Verify the Slack bot token |
100 | 112 | run: | |
101 | | - curl -s https://api.clickup.com/api/v2/team -H "Authorization: ${{ secrets.e2e_test_api_token }}" |
| 113 | + curl -s https://slack.com/api/auth.test -H "Authorization: Bearer $SLACK_BOT_TOKEN" |
102 | 114 |
|
103 | 115 | - name: Run the specific tests with pytest |
104 | 116 | if: ${{ inputs.test_type == '' }} |
|
0 commit comments