diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..88e42c2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ + +name: Tests + +on: + pull_request: + paths-ignore: + - "docs/**" + - "*.md" + push: + branches: + - main + paths-ignore: + - "docs/**" + - "*.md" + +jobs: + Testing: + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: [3.9] + os: [ubuntu-latest] + + steps: + - uses: actions/checkout@v3 + - name: Set up PDM + uses: pdm-project/setup-pdm@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Run Install + run: pdm install + - name: Run Lint + run: pdm run lint + - name: Run Unit Tests + run: pdm run test + - name: Run Integration Tests + run: pdm run int-test diff --git a/README.md b/README.md index 52f9f04..f53c562 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,20 @@ PyPI version - + pdm-managed + + Tests + + +Python 3.9 +

--- diff --git a/pyproject.toml b/pyproject.toml index 662db2f..49e6059 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,11 +74,11 @@ shell = """ echo "Build and Install ng_ai to jupyter_spark, master_spark container" pdm build --dest tests/integration/setup/build/ - docker exec -it master_spark sh -c 'pip3 uninstall ng_ai -y' - docker exec -it master_spark sh -c 'pip3 install /root/build/*.whl' + docker exec master_spark sh -c 'pip3 uninstall ng_ai -y' + docker exec master_spark sh -c 'pip3 install /root/build/*.whl' docker restart master_spark - docker exec -it jupyter_spark sh -c 'pip3 uninstall ng_ai -y' - docker exec -it jupyter_spark sh -c 'pip3 install /root/build/*.whl' + docker exec jupyter_spark sh -c 'pip3 uninstall ng_ai -y' + docker exec jupyter_spark sh -c 'pip3 install /root/build/*.whl' docker restart jupyter_spark sleep 7 echo "Run integration tests"