Skip to content

Commit 9ee5bc6

Browse files
update unit test CI env
1 parent 509a47a commit 9ee5bc6

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18+
needs: test
1819

1920
steps:
2021
- uses: actions/checkout@v6

‎.github/workflows/unit_tests.yml‎

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,35 @@ jobs:
4646
needs:
4747
- list-test-files
4848
container:
49-
image: 10.0.13.31:5000/modelcloud/gptqmodel:github-ci-v7
49+
image: 10.0.13.31:5000/nvidia/cuda:130-ubuntu22.04_1021
5050
volumes:
51-
- /home/ci/models:/monster/data/model
52-
- /home/ci/models/huggingface:/github/home/.cache/huggingface
51+
- /monster/ci/models:/monster/data/model
52+
- /monster/ci/huggingface:/github/home/.cache/huggingface
5353
strategy:
5454
fail-fast: false
5555
matrix:
5656
test_script: ${{ fromJSON(needs.list-test-files.outputs.test-files) }}
5757
steps:
5858
- uses: actions/checkout@v6
5959

60+
- name: Print Env
61+
run: |
62+
env_name="logbar_unit_test_py314_build"
63+
64+
echo "env name: $env_name"
65+
66+
if [ -d "$(pyenv root)/versions/$env_name" ]; then
67+
echo "env exists, skip"
68+
else
69+
echo "creating venv..."
70+
pyenv virtualenv 3.14 "$env_name"
71+
fi
72+
73+
pyenv local $env_name
74+
pyenv activate $env_name
75+
6076
- name: install requirements
61-
run: pip install parameterized pytest pytest-xdist
77+
run: pip install -U parameterized pytest pytest-xdist
6278

6379
- name: install
6480
run: pip install .

0 commit comments

Comments
 (0)