From f008e8dd34b11199fc76275fc8b35c929aae262d Mon Sep 17 00:00:00 2001 From: Ihor Dykhta Date: Tue, 26 Nov 2024 21:34:30 +0200 Subject: [PATCH] test Signed-off-by: Ihor Dykhta --- .github/workflows/build-publish-pypi.yml | 77 ------------------------ .github/workflows/npmpublish.yml | 22 ------- 2 files changed, 99 deletions(-) delete mode 100644 .github/workflows/build-publish-pypi.yml delete mode 100644 .github/workflows/npmpublish.yml diff --git a/.github/workflows/build-publish-pypi.yml b/.github/workflows/build-publish-pypi.yml deleted file mode 100644 index a15efc5ea9..0000000000 --- a/.github/workflows/build-publish-pypi.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: Build KeplerGL Python and NPM Packages - -on: push - -jobs: - build_and_publish: - runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" - - steps: - - uses: actions/checkout@v4 - - # use Volta to manage yarn/node versions - - uses: volta-cli/action@v4 - - - name: Set up Python 3.9 - uses: actions/setup-python@v2 - with: - python-version: 3.9 - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install twine virtualenv - - - name: Build KeplerGL - env: - MapboxAccessTokenJupyter: ${{ secrets.mapbox_jupyter_token }} - NODE_OPTIONS: --openssl-legacy-provider - run: | - python -m virtualenv venv - source venv/bin/activate - pip install jupyter jupyterlab jupyter-packaging - cd bindings/kepler.gl-jupyter - python setup.py sdist - - - name: Test KeplerGL - run: | - source venv/bin/activate - pip install bindings/kepler.gl-jupyter/dist/*.tar.gz - if [ ! -f "venv/share/jupyter/nbextensions/keplergl-jupyter/index.js" ]; then - venv/bin/jupyter nbextension install --py --sys-prefix keplergl - venv/bin/jupyter nbextension enable --py --sys-prefix keplergl - fi - venv/bin/jupyter nbconvert --execute bindings/kepler.gl-jupyter/notebooks/DataFrame.ipynb --to python - python bindings/kepler.gl-jupyter/notebooks/DataFrame.py - - - name: Create artifact - uses: actions/upload-artifact@v4 - with: - name: keplergl-pypi - path: bindings/kepler.gl-jupyter/dist/ - - - name: Check Release Tag - id: check-tag - run: | - if [[ ${{ github.event.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+-jupyter$ ]]; then - echo ::set-output name=publish::true - fi - - - name: Publish KeplerGL to Pypi - if: steps.check-tag.outputs.publish == 'true' - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.pypi_token }} - run: | - python -m twine upload bindings/kepler.gl-jupyter/dist/*.tar.gz - - - name: Publish kepler-jupyter to NPM - if: steps.check-tag.outputs.publish == 'true' - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} - MapboxAccessTokenJupyter: ${{ secrets.mapbox_jupyter_token }} - run: | - source venv/bin/activate - cd bindings/kepler.gl-jupyter/js - npm publish diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml deleted file mode 100644 index c2bd6d4cb8..0000000000 --- a/.github/workflows/npmpublish.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Node.js Package - -on: - release: - types: [created] - -jobs: - publish-npm: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2.1.1 - - uses: actions/setup-node@v3 - with: - node-version: 18 - corepack-enable: true - registry-url: https://registry.npmjs.org/ - - run: yarn policies set-version 4.4.0 && npm install -g yarn - - run: yarn bootstrap - - run: npm i -g npm@8.19.2 - - run: npm --version && npm publish --workspaces --access public - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}}