diff --git a/.github/workflows/precommit.yml b/.github/workflows/precommit.yml new file mode 100644 index 0000000..095ca9c --- /dev/null +++ b/.github/workflows/precommit.yml @@ -0,0 +1,26 @@ +name: Precommit +on: [push, pull_request] + +jobs: + Run_UT: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + + - name: git ls-tree + run: | + python3 -m unittest discover -p "*_test.py" ./ + + Build_Wheel: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + + - name: Build wheel + run: | + python3 setup.py sdist bdist_wheel + + - uses: actions/upload-artifact@v3 + with: + name: wheel + path: ${{ github.workspace }}/**/*.whl diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml deleted file mode 100644 index 74a8c1d..0000000 --- a/.github/workflows/unit_tests.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Unit Tests -on: [push, pull_request] - -jobs: - Run_UT: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - - - name: git ls-tree - run: | - python3 -m unittest discover -p "*_test.py" ./ -