Skip to content

Commit

Permalink
Renaming publish to release for improved harmony
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Oct 1, 2024
1 parent 4d8a621 commit 05c6929
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: publish
run-name: Publish ${{ inputs.VERSION }} (pre-release - ${{ inputs.IS_PRE_RELEASE }}) by @${{ github.actor }} from ${{ github.ref_name }}
name: release
run-name: Release ${{ inputs.VERSION }} (pre-release - ${{ inputs.IS_PRE_RELEASE }}) by @${{ github.actor }} from ${{ github.ref_name }}

on:
workflow_dispatch:
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
run: python -m build
working-directory: ./nextpipe

publish: # This job is used to publish the release to PyPI/TestPyPI
release: # This job is used to publish the release to PyPI/TestPyPI
runs-on: ubuntu-latest
needs: bump
strategy:
Expand Down Expand Up @@ -132,8 +132,8 @@ jobs:

notify:
runs-on: ubuntu-latest
needs: publish
if: ${{ needs.publish.result == 'success' && inputs.IS_PRE_RELEASE == false }}
needs: release
if: ${{ needs.release.result == 'success' && inputs.IS_PRE_RELEASE == false }}
steps:
- name: notify slack
run: |
Expand Down
10 changes: 10 additions & 0 deletions nextpipe/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,22 @@
import time
from typing import List, Optional, Union

import nextmv
from nextmv.cloud import Application, Client, StatusV2
from pathos.multiprocessing import ProcessingPool as Pool

from . import utils


class FlowParameter(nextmv.Parameter):
"""
Parameter that is used in a `FlowSpec`.
"""

def __init__(self, name, type, default=None, description=None, required=False):
super().__init__(name, type, default, description, required)


class DAGNode:
def __init__(self, step_function, step_definition, docstring):
self.step_function = step_function
Expand Down

0 comments on commit 05c6929

Please sign in to comment.