Skip to content

Merge pull request #132 from neptune-ai/pg/fix #28

Merge pull request #132 from neptune-ai/pg/fix

Merge pull request #132 from neptune-ai/pg/fix #28

Workflow file for this run

name: release
on:
push:
tags:
- "*"
jobs:
build-neptune-fetcher:
runs-on: ubuntu-latest
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-fetcher-package
path: dist/
test-install:
needs: [ build-neptune-fetcher ]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: neptune-fetcher-package
path: dist
- name: Install neptune-fetcher package
run: pip install --force-reinstall --pre -f ./dist neptune-fetcher
- name: List dependencies
run: pip list
- name: Test imports
run: python -c "from neptune_fetcher import *"
publish-neptune-fetcher:
needs:
- build-neptune-fetcher
- test-install
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: neptune-fetcher-package
path: dist/
- name: Uploading to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}