Skip to content

Commit 63e3008

Browse files
[CI] user docker image (#40)
* [CI] update docker * [CI] pass pyenv * [CI] rename virtual env * [CI] force update * [CI] fix python version * [CI] isolate different tests * [CI] add init env back * [CI] uv install * [CI] install uv forst * Update unit_tests.yml
1 parent 0a4929c commit 63e3008

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/unit_tests.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,40 @@ jobs:
4545
needs:
4646
- list-test-files
4747
container:
48-
image: 10.0.13.31:5000/modelcloud/gptqmodel:github-ci-v7
48+
image: 10.0.13.31:5000/nvidia/cuda:128-ubuntu22.04_0822
4949
volumes:
5050
- /home/ci/models:/monster/data/model
5151
- /home/ci/models/huggingface:/github/home/.cache/huggingface
52+
- /home/ci/models/pyenv:/opt/pyenv
5253
strategy:
5354
fail-fast: false
5455
matrix:
5556
test_script: ${{ fromJSON(needs.list-test-files.outputs.test-files) }}
5657
steps:
5758
- uses: actions/checkout@v4
5859

60+
- name: Print Env
61+
run: |
62+
env_name="cu128_torch2.8.0_py3.12_tokenicer_${{ matrix.test_script }}"
63+
64+
echo "env name: $env_name"
65+
66+
if [ -d "$(pyenv root)/versions/$env_name" ]; then
67+
echo "env exists, skip"
68+
pyenv activate $env_name
69+
pyenv local $env_name
70+
else
71+
echo "creating venv..."
72+
pyenv virtualenv 3.12 "$env_name"
73+
pyenv activate $env_name
74+
pyenv local $env_name
75+
bash -c "$(curl -L http://10.0.13.31/scripts/env/init_compiler_no_env.sh)" @ 128 2.8.0 3.12
76+
fi
77+
5978
- name: install requirements
60-
run: pip install parameterized pytest pytest-xdist
79+
run: |
80+
pip install uv
81+
uv pip install parameterized pytest pytest-xdist transformers -U
6182
6283
- name: install
6384
run: pip install .

0 commit comments

Comments
 (0)