Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions .github/workflows/compatibility_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ name: βœ… Compatibility Test ❌

on:
workflow_dispatch:
inputs:
pr_number:
description: 'Target PR Number'
required: true
type: number

env:
FORCE_COLOR: 1
Expand All @@ -34,6 +39,9 @@ jobs:
steps:
- name: Fetch Code
uses: actions/checkout@v4

- name: Checkout PR
run: gh pr checkout ${{ github.event.inputs.pr_number }}

- name: Set up Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -130,6 +138,9 @@ jobs:
- name: Fetch Code
uses: actions/checkout@v4

- name: Checkout PR
run: gh pr checkout ${{ github.event.inputs.pr_number }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/minimal_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# - Test cases (/tests)
# - Configuration files (default_cfg.yml, requirements.txt)
# - Manual trigger via GitHub UI:
# - PR number: the target PR number that needs to be tested
# - Select OS: ubuntu/macOS/windows
# - Choose Python version: 3.8~3.13
#
Expand All @@ -35,13 +36,19 @@ on:
- 'requirements.txt'
workflow_dispatch:
inputs:
pr_number:
description: 'Target PR Number'
required: true
type: number

chosen-os:
required: true
type: choice
options:
- ubuntu
- macOS
- windows

python-version:
required: true
type: choice
Expand Down Expand Up @@ -97,6 +104,12 @@ jobs:
- name: Fetch Code
uses: actions/checkout@v4

- name: Checkout PR
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
gh pr checkout ${{ github.event.inputs.pr_number }}
fi

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -179,6 +192,12 @@ jobs:
steps:
- name: Fetch Code
uses: actions/checkout@v4

- name: Checkout PR
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
gh pr checkout ${{ github.event.inputs.pr_number }}
fi

- name: Set up Python ${{ needs.Pick-OS-Python.outputs.python_version }}
uses: actions/setup-python@v5
Expand Down
Loading