diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index 481fa0fd5..cd0480f1b 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -12,29 +12,12 @@ jobs: python: [3.8.10] spark: [3.2.1] steps: - - name: Checkout code + - name: checkout code uses: actions/checkout@v2 - - name: Configure JDK - uses: actions/setup-java@v2 - with: - java-version: '8' - distribution: 'zulu' - - name: Test and build the scala JAR - run: mvn -q clean install - - name: Configure python interpreter - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - name: Install python dependencies - run: | - cd python - pip install build wheel pyspark==${{ matrix.spark }} - pip install . - - name: Test and build python package - run: | - cd python - python -m unittest - python -m build + - name: build scala + uses: ./.github/actions/scala_build + - name: build python + uses: ./.github/actions/python_build - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: