-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Auto Format Checking and test checking. (#73)
* chore: Update support matrix in README * Move bitblas package to root * Remove unused code files * Create soft link for tvm * Create soft link for tvm * Update softlink paths for tvm in setup.py * Refactor import statements to use relative paths * fix test linear * Move bitblas package to root * Move bitblas package to root * refactor splitk test * Fix assert statement in ladder_permutate_impl.py * Refactor test_ladder_permutate_ops.py for improved readability and maintainability * Refactor test_ladder_permutate_ops.py for improved readability and maintainability * improve and evaluate the test scripts. * resolve security issue. * ci test * requirements install * enhance installation script. * make sure the origin/main branch exist. * fetch all history. * install * refactor script install with pip install * chore: Update installation script to include pip wheel installation * chore: Update pip installation in CI workflow * chore: Update Python version in CI workflow to 3.9 * chore: Update CI workflow to include pip wheel installation and Python 3.9 * chore: Update requirements-dev.txt with wheel and setuptools dependencies * chore: Update CI workflow to include pip wheel installation * chore: Update CI workflow to include pip wheel installation and Python 3.9 * wheel test * add * update setup.pt * chore: Update setup.py to improve compatibility with Python 3.9 and include pip wheel installation * trick invarent to make the test pass. * chore: Update CI workflow to include running tests with pytest * Lint Fix * chore: Update CI workflow to include running tests with pytest
- Loading branch information
1 parent
8804d77
commit 1b7e52d
Showing
7 changed files
with
256 additions
and
73 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,67 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
format-check: | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Create virtual environment | ||
run: python -m venv bitblas_ci | ||
|
||
- name: Activate virtual environment and install dependencies | ||
run: | | ||
source bitblas_ci/bin/activate | ||
python -m pip install --upgrade pip | ||
if [ -f requirements-dev.txt ]; then python -m pip install -r requirements-dev.txt; fi | ||
- name: Run format check | ||
run: | | ||
source bitblas_ci/bin/activate | ||
./format.sh | ||
build-test: | ||
runs-on: self-hosted | ||
needs: format-check | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
- name: Create virtual environment | ||
run: python -m venv bitblas_ci | ||
|
||
- name: Activate virtual environment and install dependencies | ||
run: | | ||
source bitblas_ci/bin/activate | ||
python -m pip install --upgrade pip | ||
if [ -f requirements-dev.txt ]; then python -m pip install -r requirements-dev.txt; fi | ||
- name: Install project in wheel mode | ||
run: | | ||
source bitblas_ci/bin/activate | ||
python -m pip install . | ||
- name: Run tests | ||
run: | | ||
source bitblas_ci/bin/activate | ||
cd testing/python | ||
python -m pytest |
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
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
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
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 |
---|---|---|
|
@@ -28,3 +28,5 @@ tornado | |
torch | ||
thefuzz | ||
tabulate | ||
wheel | ||
setuptools |
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
Oops, something went wrong.