Update CHANGELOG.md #152
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
# wait-for-green-dev-1-x: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Wait for tests to finish | |
# uses: lewagon/wait-on-check-action@v1.3.1 | |
# with: | |
# ref: ${{ github.ref }} | |
# running-workflow-name: 'wait-for-green-dev-1-x' | |
# repo-token: ${{ secrets.NEPTUNE_BOT_ACCESS_TOKEN }} | |
# wait-interval: 60 | |
build-neptune: | |
runs-on: ubuntu-latest | |
# needs: [wait-for-green-dev-1-x] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install build dependencies | |
run: pip install poetry poetry-dynamic-versioning | |
- name: Build package | |
run: poetry build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: neptune-package | |
path: dist/ | |
build-neptune-client: | |
runs-on: ubuntu-latest | |
# needs: [wait-for-green-dev-1-x] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install build dependencies | |
run: pip install poetry poetry-dynamic-versioning | |
- name: Build package | |
run: | | |
cp .github/neptune_client_pyproject.toml pyproject.toml | |
poetry build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: neptune-client-package | |
path: dist/ | |
test-clean-install-neptune: | |
needs: [ build-neptune ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune-package | |
path: dist | |
- name: Install neptune package | |
run: pip install --force-reinstall ./dist/neptune-${{ github.ref_name }}.tar.gz | |
- name: List dependencies | |
run: pip list | |
- name: Test imports | |
run: python -c "from neptune.new import init_run; from neptune import init_run" | |
test-clean-install-neptune-client: | |
needs: [ build-neptune-client ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune-client-package | |
path: dist | |
- name: Install neptune-client package | |
run: pip install --force-reinstall ./dist/neptune_client-${{ github.ref_name }}.tar.gz | |
- name: List dependencies | |
run: pip list | |
- name: Test imports | |
run: python -c "from neptune.new import init_run; from neptune import init_run" | |
test-neptune-and-neptune-client: | |
needs: [ build-neptune-client, build-neptune ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune-client-package | |
path: dist | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune-package | |
path: dist | |
- name: Install neptune-client package | |
run: pip install --force-reinstall ./dist/neptune_client-${{ github.ref_name }}.tar.gz | |
- name: Install neptune package | |
run: pip install --force-reinstall ./dist/neptune-${{ github.ref_name }}.tar.gz | |
- name: List dependencies | |
run: pip list | |
- name: Run tests | |
run: | | |
echo "TEST_EXIT_CODE=$(python -c "from neptune.new import init_run; from neptune import init_run")" >> $GITHUB_ENV | |
- name: Test that fails (due to RuntimeException) | |
if: env.TEST_EXIT_CODE == '0' | |
run: exit 1 | |
test-upgrade-0-16: | |
needs: [ build-neptune-client ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune-client-package | |
path: dist | |
- name: Install neptune-client 0.16 | |
run: pip install neptune-client==0.16.18 | |
- name: Install new neptune-client package | |
run: pip install --force-reinstall ./dist/neptune_client-${{ github.ref_name }}.tar.gz | |
- name: List dependencies | |
run: pip list | |
- name: Test imports | |
run: python -c "from neptune.new import init_run; from neptune import init_run" | |
test-uninstall-0-16-install-neptune-client: | |
needs: [ build-neptune-client ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune-client-package | |
path: dist | |
- name: Install neptune-client 0.16 | |
run: pip install neptune-client==0.16.18 | |
- name: Uninstall neptune-client | |
run: pip uninstall neptune-client -y | |
- name: Install new neptune-client package | |
run: pip install --force-reinstall ./dist/neptune_client-${{ github.ref_name }}.tar.gz | |
- name: List dependencies | |
run: pip list | |
- name: Test imports | |
run: python -c "from neptune.new import init_run; from neptune import init_run" | |
test-uninstall-0-16-install-neptune: | |
needs: [ build-neptune ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune-package | |
path: dist | |
- name: Install neptune-client 0.16 | |
run: pip install neptune-client==0.16.18 | |
- name: Uninstall neptune-client | |
run: pip uninstall neptune-client -y | |
- name: Install new neptune package | |
run: pip install --force-reinstall ./dist/neptune-${{ github.ref_name }}.tar.gz | |
- name: List dependencies | |
run: pip list | |
- name: Test imports | |
run: python -c "from neptune.new import init_run; from neptune import init_run" | |
publish-neptune: | |
needs: | |
- build-neptune | |
- test-upgrade-0-16 | |
- test-clean-install-neptune | |
- test-clean-install-neptune-client | |
- test-neptune-and-neptune-client | |
- test-uninstall-0-16-install-neptune-client | |
- test-uninstall-0-16-install-neptune | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune-package | |
path: dist/ | |
# - name: Uploading to test PyPI | |
# uses: pypa/gh-action-pypi-publish@v1.8.14 | |
# with: | |
# user: __token__ | |
# password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
# repository_url: https://test.pypi.org/legacy/ | |
- name: Uploading to PyPI | |
uses: pypa/gh-action-pypi-publish@v1.8.14 | |
with: | |
user: __token__ | |
password: ${{ secrets.NEPTUNE_PYPI_API_TOKEN }} | |
publish-neptune-client: | |
needs: | |
- build-neptune-client | |
- test-upgrade-0-16 | |
- test-clean-install-neptune | |
- test-clean-install-neptune-client | |
- test-neptune-and-neptune-client | |
- test-uninstall-0-16-install-neptune-client | |
- test-uninstall-0-16-install-neptune | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: neptune-client-package | |
path: dist/ | |
- name: Uploading to test PyPI | |
uses: pypa/gh-action-pypi-publish@v1.8.14 | |
with: | |
user: __token__ | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository_url: https://test.pypi.org/legacy/ | |
- name: Publish package | |
uses: pypa/gh-action-pypi-publish@v1.8.14 | |
with: | |
user: __token__ | |
password: ${{ secrets.NEPTUNE_CLIENT_PYPI_API_TOKEN }} |