Skip to content

Commit f5f6707

Browse files
authored
Merge pull request #73 from Chisanan232/develop_clear_py_vers
[CU-86er72kk9] Adjust the Python versions for supporting to verify features.
2 parents d21db1e + 91fe9da commit f5f6707

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

.github/workflows/rw_poetry_run_test.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# * http_server_port: The port number of HTTP server.
1515
# * http_server_app_module: The module path of HTTP server.
1616
# * http_server_enter_point: The object about the web application.
17+
# * keep_run_if_test_fail: Keep running CI process if it gets failure at running runs.
1718
#
1819
# Workflow running output:
1920
# No, but it would save the testing coverage reports to provide after-process to organize and record.
@@ -74,6 +75,11 @@ on:
7475
type: string
7576
required: false
7677
default: app
78+
keep_run_if_test_fail:
79+
description: "Keep running CI process if it gets failure at running runs."
80+
type: boolean
81+
required: false
82+
default: false
7783

7884
# TODO: Add a reusable workflow about running test via Poetry
7985
# TODO: https://github.com/marketplace/actions/python-poetry-action
@@ -119,7 +125,7 @@ jobs:
119125

120126
- name: Run tests with pytest
121127
run: poetry run pytest ${{ matrix.test-path }}
122-
continue-on-error: true
128+
continue-on-error: ${{ inputs.keep_run_if_test_fail }}
123129

124130
- name: Rename the code coverage result file
125131
run: |

.github/workflows/rw_poetry_run_test_with_multi_py_versions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
run_test_items:
7171
strategy:
7272
matrix:
73-
python-version: [3.8,3.9,'3.10','3.11']
73+
python-version: [3.9,'3.10','3.11','3.12','3.13']
7474
os: [ubuntu-latest,ubuntu-20.04,macos-latest,macos-13]
7575
test-path: ${{fromJson(inputs.all_test_items_paths)}}
7676
fail-fast: false # Fix issue in GitHub Action: FailFast: cancelling since parallel instance has failed

.github/workflows/rw_run_test.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# * http_server_port: The port number of HTTP server.
1515
# * http_server_app_module: The module path of HTTP server.
1616
# * http_server_enter_point: The object about the web application.
17+
# * keep_run_if_test_fail: Keep running CI process if it gets failure at running runs.
1718
#
1819
# Workflow running output:
1920
# No, but it would save the testing coverage reports to provide after-process to organize and record.
@@ -72,6 +73,11 @@ on:
7273
type: string
7374
required: false
7475
default: app
76+
keep_run_if_test_fail:
77+
description: "Keep running CI process if it gets failure at running runs."
78+
type: boolean
79+
required: false
80+
default: false
7581

7682
env:
7783
PIP_DISABLE_PIP_VERSION_CHECK: 1
@@ -110,7 +116,7 @@ jobs:
110116

111117
- name: Run tests with pytest
112118
run: pytest ${{ matrix.test-path }}
113-
continue-on-error: true
119+
continue-on-error: ${{ inputs.keep_run_if_test_fail }}
114120

115121
- name: Rename the code coverage result file
116122
run: mv ./.coverage ./.coverage.${{ inputs.test_type }}.${{ inputs.runtime_os }}-${{ inputs.python_version }}

.github/workflows/rw_run_test_with_multi_py_versions.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,8 @@ jobs:
6666
run_test_items:
6767
strategy:
6868
matrix:
69-
python-version: [3.6,3.7,3.8,3.9,'3.10','3.11']
69+
python-version: [3.9,'3.10','3.11','3.12','3.13']
7070
os: [ubuntu-latest,ubuntu-20.04,macos-latest,macos-13]
71-
exclude:
72-
- os: ubuntu-latest # Issue: The version '3.6' with architecture 'x64' was not found for Ubuntu 22.04
73-
python-version: 3.6
74-
- os: macos-latest
75-
python-version: 3.6
76-
- os: macos-latest # Issue: The version '3.7' with architecture 'arm64' was not found for macOS 14.4.1.
77-
python-version: 3.7
7871
test-path: ${{fromJson(inputs.all_test_items_paths)}}
7972
fail-fast: false # Fix issue in GitHub Action: FailFast: cancelling since parallel instance has failed
8073

0 commit comments

Comments
 (0)