Skip to content

Commit

Permalink
Merge pull request databrickslabs#289 from databrickslabs/fix/pipy_re…
Browse files Browse the repository at this point in the history
…lease

Aligned pypi release action to scala build
  • Loading branch information
Milos Colic authored Jan 17, 2023
2 parents 63c4489 + 27eae0e commit 0b052d1
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0b052d1

Please sign in to comment.