Enable generating compressed-tensors-nightly
#11
Workflow file for this run
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
name: Build nightly wheel | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-wheel-nightly: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Build PyPi Wheel | |
id: build-wheel | |
uses: neuralmagic/nm-actions/actions/pypi_build@main | |
with: | |
dev: false | |
release: false | |
- name: Set Env | |
run: | | |
pip3 install virtualenv | |
virtualenv venv | |
source venv/bin/activate | |
pip3 list | |
- name: Fetch name of whl | |
run: | | |
echo "FILENAME=$(echo dist/*.whl)" >> $GITHUB_ENV | |
- name: Install whl | |
run: | | |
pip3 install $FILENAME[dev] | |
- name: Remove src files and run tests | |
run: | | |
rm -rf src | |
make test |