Skip to content

Commit

Permalink
Merge pull request #87 from Nautilus-Cyberneering/issue-86-fix-publis…
Browse files Browse the repository at this point in the history
…hing-depedency-error

Add installation instructions to publishing workflows
  • Loading branch information
josecelano authored Feb 16, 2022
2 parents c213f32 + 938d0fb commit b6e792e
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "*.*.*"
workflow_dispatch:

jobs:
build:
Expand All @@ -21,6 +22,12 @@ jobs:
with:
python-version: "3.9"

- name: Setup Libvips
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y libvips-dev
- name: Setup Poetry
run: pip3 install poetry poetry-dynamic-versioning

Expand Down Expand Up @@ -64,11 +71,3 @@ jobs:
images: |
nautiluscyberneering/librarian
ghcr.io/${{ github.repository }}
- name: Build and push Docker images
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
15 changes: 7 additions & 8 deletions .github/workflows/publish-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "*.*.*"
workflow_dispatch:

jobs:
build:
Expand All @@ -20,6 +21,12 @@ jobs:
with:
python-version: "3.9"

- name: Setup Libvips
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y libvips-dev
- name: Setup Poetry
run: pip3 install poetry poetry-dynamic-versioning

Expand Down Expand Up @@ -51,11 +58,3 @@ jobs:
run: |
[[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
|| echo ::set-output name=prerelease::true
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: steps.check-version.outputs.prerelease == 'true'
12 changes: 7 additions & 5 deletions .github/workflows/publish-pypi-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "*.*.*"
workflow_dispatch:

jobs:
build:
Expand All @@ -18,6 +19,12 @@ jobs:
with:
python-version: "3.9"

- name: Setup Libvips
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y libvips-dev
- name: Setup Poetry
run: pip3 install poetry poetry-dynamic-versioning

Expand All @@ -43,8 +50,3 @@ jobs:

- name: Build Python package
run: poetry build

- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: poetry publish
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os
from typing import List

from nautilus_librarian.domain.dvc_services_api import DvcServicesApi
from nautilus_librarian.domain.file_locator import (
file_locator,
guard_that_base_image_exists,
)
from nautilus_librarian.domain.dvc_services_api import DvcServicesApi
from nautilus_librarian.mods.dvc.domain.utils import (
extract_added_files_from_dvc_diff,
extract_deleted_files_from_dvc_diff,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from os import path, remove

from nautilus_librarian.domain.file_locator import file_locator
from nautilus_librarian.domain.dvc_services_api import DvcServicesApi
from nautilus_librarian.domain.file_locator import file_locator
from nautilus_librarian.mods.dvc.domain.utils import extract_deleted_files_from_dvc_diff
from nautilus_librarian.mods.namecodes.domain.filename import Filename
from nautilus_librarian.typer.commands.workflows.actions.action_result import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from nautilus_librarian.domain.file_locator import file_locator
from nautilus_librarian.domain.dvc_services_api import DvcServicesApi
from nautilus_librarian.domain.file_locator import file_locator
from nautilus_librarian.mods.dvc.domain.utils import (
extract_added_and_modified_files_from_dvc_diff,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from os import makedirs, path

from nautilus_librarian.domain.dvc_services_api import DvcServicesApi
from nautilus_librarian.domain.file_locator import (
get_base_image_absolute_path,
guard_that_base_image_exists,
)
from nautilus_librarian.domain.dvc_services_api import DvcServicesApi
from nautilus_librarian.mods.dvc.domain.utils import extract_renamed_files_from_dvc_diff
from nautilus_librarian.mods.namecodes.domain.filename import Filename
from nautilus_librarian.typer.commands.workflows.actions.action_result import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import typer

from nautilus_librarian.mods.console.domain.utils import get_current_working_directory
from nautilus_librarian.domain.dvc_services_api import DvcServicesApi
from nautilus_librarian.mods.console.domain.utils import get_current_working_directory
from nautilus_librarian.mods.git.domain.config import (
default_git_user_email,
default_git_user_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import pytest
from git import Repo

from nautilus_librarian.domain.dvc_services_api import DvcServicesApi
from nautilus_librarian.mods.dvc.domain.api import DvcApiWrapper
from nautilus_librarian.mods.dvc.domain.dvc_command_wrapper import dvc
from nautilus_librarian.domain.dvc_services_api import DvcServicesApi


def create_librarian_test_contents(temp_dir):
Expand Down

0 comments on commit b6e792e

Please sign in to comment.