OpenMetadata/.github/workflows/py-ingestion-core-publish.yml
Pere Miquel Brull 5da63c5aed
Fix #12734 - Do not publish .egg to pypi (#12799)
* Fix #12734 - Do not publish .egg to pypi

* Remove python 3.7 tests support
2023-08-10 07:30:22 +02:00

50 lines
1.8 KiB
YAML

# Copyright 2021 Collate
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# When a new push happens to the main branch that
# modifies the JSON Schemas, we are going to
# generate the updated pydantic models and
# publish a new version of openmetadata-core
name: Publish openmetadata-ingestion-core packages
on:
workflow_dispatch:
concurrency:
group: py-ingestion-core-publish-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
py-core-build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Ubuntu related dependencies
run: |
sudo apt-get update && sudo apt-get install -y libsasl2-dev unixodbc-dev python3-venv
- name: Install, Generate and Publish Test PyPi packages
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME_TEST }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD_TEST }}
run: |
python3 -m venv env
source env/bin/activate
sudo make install_antlr_cli
make install_dev generate install
cd ingestion-core; \
python setup.py build sdist bdist_wheel; \
twine check dist/*; \
twine upload dist/* --verbose