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
26 changes: 8 additions & 18 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ jobs:
needs:
- list-test-files
container:
image: 10.0.13.31:5000/nvidia/cuda:128-ubuntu22.04_0822
image: 10.0.13.31:5000/nvidia/cuda:128-ubuntu22.04_0206
volumes:
- /home/ci/models:/monster/data/model
- /home/ci/models/huggingface:/github/home/.cache/huggingface
- /home/ci/models/pyenv:/opt/pyenv
- /monster/ci/env/entrypoint.sh:/etc/profile.d/01-entrypoint.sh
- /monster/ci/models:/monster/data/model
- /monster/ci/huggingface:/github/home/.cache/huggingface
- /monster/ci/uv:/opt/uv
strategy:
fail-fast: false
matrix:
Expand All @@ -63,25 +64,14 @@ jobs:

echo "env name: $env_name"

if [ -d "$(pyenv root)/versions/$env_name" ]; then
echo "env exists, skip"
pyenv activate $env_name
pyenv local $env_name
else
echo "creating venv..."
pyenv virtualenv 3.12 "$env_name"
pyenv activate $env_name
pyenv local $env_name
bash -c "$(curl -L http://10.0.13.31/scripts/env/init_compiler_no_env.sh)" @ 128 2.8.0 3.12
fi
/opt/uv/setup_uv_venv.sh $env_name

- name: install requirements
run: |
pip install uv
uv pip install parameterized pytest pytest-xdist transformers -U
uv pip install parameterized pytest pytest-xdist jinja2 transformers sentencepiece torch tiktoken protobuf -U

- name: install
run: pip install .
run: uv pip install .

- name: test
run: pytest -n 8 -v tests/${{ matrix.test_script }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from setuptools import find_packages, setup

__version__ = "0.0.5"
__version__ = "0.0.6"

with open("requirements.txt") as f:
requirements = f.read().splitlines()
Expand Down
Loading