Skip to content

Commit 9277401

Browse files
committed
Fix GitHub Actions workflow hanging issue
- Rename job from 'build' to 'test' to avoid conflicts with ci.yml - Add timeout-minutes: 30 to prevent indefinite hanging - Add pull_request trigger for better PR testing - Improve job naming and step organization - Split dependency installation into separate steps for better debugging This should fix the 'Waiting for status to be reported' issue.
1 parent 2a2a48b commit 9277401

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,58 @@
11
name: Python package
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
46

57
jobs:
6-
build:
7-
8+
test:
9+
name: Test on ${{ matrix.os }} with Python ${{ matrix.python-version }}
810
runs-on: ${{ matrix.os }}
11+
timeout-minutes: 30
912
strategy:
13+
fail-fast: false
1014
matrix:
1115
os: [ubuntu-latest, macos-latest, windows-latest]
12-
python-version: [3.9]
16+
python-version: ["3.9"]
1317

1418
steps:
15-
- uses: actions/checkout@v4
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
1622
- name: Set up Python ${{ matrix.python-version }}
1723
uses: actions/setup-python@v4
1824
with:
1925
python-version: ${{ matrix.python-version }}
26+
2027
- name: Install UV (Unix)
2128
if: runner.os != 'Windows'
2229
run: |
2330
curl -LsSf https://astral.sh/uv/install.sh | sh
2431
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
32+
2533
- name: Install UV (Windows)
2634
if: runner.os == 'Windows'
2735
run: |
2836
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
2937
echo "$env:USERPROFILE\.cargo\bin" >> $env:GITHUB_PATH
38+
3039
- name: Install OpenMP (macOS)
3140
if: runner.os == 'macOS'
3241
run: |
3342
brew install libomp
34-
- name: Install dependencies
43+
44+
- name: Create virtual environment
3545
run: |
3646
uv venv
47+
48+
- name: Install dependencies
49+
run: |
3750
uv pip install -e ".[test]"
51+
3852
- name: Verify installation
3953
run: |
4054
uv run python verify_installation.py
55+
4156
- name: Test CLI functionality
4257
run: |
4358
uv run iris --help

0 commit comments

Comments
 (0)