Skip to content

Commit

Permalink
test databricks workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
serhio-k committed Oct 23, 2024
1 parent f998ace commit af494c5
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/databricks-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
- name: Install dependencies
run: |
cp -n databricks/requirements-databricks-15.4-LTS.txt .
cat databricks/setup.cfg > setup.cfg
cat databricks/pyproject.toml > pyproject.toml
sed -i 's/$/dev.0/' src/syngen/VERSION
sed -i 's/name="syngen"/name="syngen-databricks"/' src/setup.py
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements-databricks-15.4-LTS.txt ]; then pip install -r requirements-databricks-15.4-LTS.txt; fi
Expand All @@ -39,32 +43,17 @@ jobs:
cp -n databricks/databricks.dockerfile .
docker build -t databricks-test-image -f databricks.dockerfile .
build-and-publish:
needs: Databricks-compatibility-test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install build dependencies
- name: Build Package
run: |
cp -n databricks/setup.cfg .
cp -n databricks/pyproject.toml .
sed -i 's/$/dev.0/' src/syngen/VERSION
sed -i 's/name="syngen"/name="syngen-databricks"/' src/setup.py
# NOTE - DEBUG
ls
pwd
cat setup.cfg
cat pyproject.toml
cat src/setup.py
cat src/syngen/VERSION
python -m pip install --upgrade pip
pip install build
- name: Build Package
run: python -m build .
python -m build .
- name: Publish package
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
if: github.event_name == 'push'
Expand Down

0 comments on commit af494c5

Please sign in to comment.