Skip to content

Commit 785fa81

Browse files
author
root
committed
fix
1 parent 27200d4 commit 785fa81

9 files changed

Lines changed: 26 additions & 13 deletions

File tree

.github/workflows/fleet-release-test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ jobs:
317317
python -c "import paddleformers; print(paddleformers.__version__)"
318318
'
319319
- name: Single card test
320-
timeout-minutes: 60
320+
timeout-minutes: 90
321321
run: |
322322
docker exec -t ${{ env.container_name }} /bin/bash -xce '
323323
pwd
@@ -536,7 +536,7 @@ jobs:
536536
python -c "import paddle; print(paddle.version.commit)"
537537
'
538538
- name: Proprocess for integration test
539-
if: always()
539+
if: (success() || failure()) && steps.formers_install.conclusion == 'success'
540540
run: |
541541
docker exec -t ${{ env.container_name }} /bin/bash -ce '
542542
source /root/proxy
@@ -551,7 +551,7 @@ jobs:
551551
fi
552552
'
553553
- name: Integration test (GLM4.5 single-card)
554-
if: always()
554+
if: (success() || failure()) && steps.formers_install.conclusion == 'success'
555555
timeout-minutes: 5
556556
run: |
557557
docker exec -t ${{ env.container_name }} /bin/bash -ce '
@@ -589,7 +589,7 @@ jobs:
589589
# fi
590590
# '
591591
- name: Qwen3-vl-8k-single-card
592-
if: always()
592+
if: (success() || failure()) && steps.formers_install.conclusion == 'success'
593593
timeout-minutes: 5
594594
run: |
595595
docker exec -t ${{ env.container_name }} /bin/bash -ce '
@@ -677,6 +677,7 @@ jobs:
677677
-e PP="rel" \
678678
-w /workspace --network host ${docker_image}
679679
- name: Install PaddleFormers
680+
id: formers_install
680681
run: |
681682
docker exec -t ${{ env.container_name }} /bin/bash -ce '
682683
rm -rf * .[^.]*

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "paddleformers"
7-
version = "1.2.0.dev20260615"
7+
version = "1.2.0.dev"
88
description = "Easy-to-use and powerful NLP library with Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications."
99
readme = "README.md"
1010
requires-python = ">=3.8"
@@ -92,7 +92,7 @@ target_version = ['py35', 'py36', 'py37', 'py38', 'py39', 'py310']
9292

9393
[tool.pytest.ini_options]
9494
minversion = "6.0"
95-
addopts = "-ra -q "
95+
addopts = "-ra -q --import-mode=importlib"
9696
testpaths = [
9797
"tests/data",
9898
"tests/dataset",

scripts/regression/install_requirements.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ install_requirements() {
125125
echo "Install CI ENV: Cuda129+Python312"
126126
#formers - build wheel first
127127
uv build --wheel --package paddleformers --out-dir dist --clear -v > /dev/null
128-
pip install "$(ls -t dist/*.whl | head -1)" -i https://pypi.org/simple --extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cu129/ --extra-index-url https://www.paddlepaddle.org.cn/packages/nightly/cu129/
128+
uv pip install "$(ls -t dist/*.whl | head -1)" -i https://pypi.org/simple --extra-index-url https://www.paddlepaddle.org.cn/packages/stable/cu129/ --extra-index-url https://www.paddlepaddle.org.cn/packages/nightly/cu129/
129129
#paddlefleet_ops
130130
install_ops_wheel_release
131131
fi

tests/fleet/multi_card_tests/pipeline_parallel/test_vpp_fthenb_with_shared_weight.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
0,
2020
os.path.dirname(
2121
os.path.dirname(
22-
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
22+
os.path.dirname(
23+
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
24+
)
2325
)
2426
),
2527
)

tests/fleet/multi_card_tests/pipeline_parallel/test_vpp_with_shared_weight.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
0,
2020
os.path.dirname(
2121
os.path.dirname(
22-
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
22+
os.path.dirname(
23+
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
24+
)
2325
)
2426
),
2527
)

tests/fleet/multi_card_tests/tensor_parallel/test_initialization.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
0,
2323
os.path.dirname(
2424
os.path.dirname(
25-
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
25+
os.path.dirname(
26+
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
27+
)
2628
)
2729
),
2830
)

tests/fleet/multi_card_tests/tensor_parallel/test_layers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
0,
2323
os.path.dirname(
2424
os.path.dirname(
25-
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
25+
os.path.dirname(
26+
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
27+
)
2628
)
2729
),
2830
)

tests/fleet/multi_card_tests/tensor_parallel/test_random.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
0,
2323
os.path.dirname(
2424
os.path.dirname(
25-
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
25+
os.path.dirname(
26+
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
27+
)
2628
)
2729
),
2830
)

tests/fleet/multi_card_tests/test_subbatch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
sys.path.insert(
3636
0,
3737
os.path.dirname(
38-
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
38+
os.path.dirname(
39+
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
40+
)
3941
),
4042
)
4143

0 commit comments

Comments
 (0)