-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dhuangnm
authored and
dhuangnm
committed
Sep 12, 2024
1 parent
5f6bea7
commit 949e456
Showing
2 changed files
with
46 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: test compressed-tensors | ||
description: 'test compressed-tensors' | ||
inputs: | ||
venv: | ||
description: "path of virtualenv" | ||
required: true | ||
outputs: | ||
status: | ||
description: "final status from test" | ||
value: ${{ steps.test.outputs.status }} | ||
runs: | ||
using: composite | ||
steps: | ||
- id: test | ||
run: | | ||
# install wheel | ||
source ${{ inputs.venv }}/bin/activate | ||
python --version | ||
WHL=$(find . -type f -iname "compressed*.whl") | ||
pip install ${WHL}[dev,accelerate] | ||
version=$(pip freeze | grep compressed) | ||
echo "installed ${version}" | ||
SUCCESS=0 | ||
# run test | ||
echo "running tests..." | ||
rm -rf src | ||
make test || SUCCESS=$? | ||
echo "status=${SUCCESS}" >> "$GITHUB_OUTPUT" | ||
deactivate | ||
exit ${SUCCESS} | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters