-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1694 from neptune-ai/dev/2.0
Merged dev branch into master
- Loading branch information
Showing
285 changed files
with
1,455 additions
and
14,066 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,33 +42,6 @@ jobs: | |
name: neptune-package | ||
path: dist/ | ||
|
||
build-neptune-client: | ||
runs-on: ubuntu-latest | ||
# needs: [wait-for-green-master] | ||
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 | ||
|
@@ -85,135 +58,12 @@ jobs: | |
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 --pre -f ./dist neptune-client | ||
|
||
- 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 --pre -f ./dist neptune-client | ||
|
||
- name: Install neptune package | ||
run: pip install --force-reinstall --pre -f ./dist neptune | ||
|
||
- 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 --pre -f ./dist neptune-client | ||
|
||
- 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 --pre -f ./dist neptune-client | ||
|
||
- 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 --pre -f ./dist neptune | ||
|
||
- name: List dependencies | ||
run: pip list | ||
|
||
- name: Test imports | ||
run: python -c "from neptune.new import init_run; from neptune import init_run" | ||
run: python -c "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 | ||
|
@@ -233,32 +83,3 @@ jobs: | |
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/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
- name: Publish package | ||
uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.NEPTUNE_CLIENT_PYPI_API_TOKEN }} |
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
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
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
Oops, something went wrong.