Skip to content

Commit

Permalink
Merge pull request #119 from zairah10/zairah
Browse files Browse the repository at this point in the history
fix: remove response_dialog fields
  • Loading branch information
zairahms authored Jul 16, 2021
2 parents 0be4c6e + 923cdf6 commit 34891f3
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 3 deletions.
57 changes: 57 additions & 0 deletions github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support documentation.
# This workflow will download a prebuilt Python version, install dependencies, build and deploy/publish a new release
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Deploy and Publish

on:
workflow_run:
branches: [ master ]
types:
- completed
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
deploy:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: Deploy and Publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install Semantic Release dependencies
run: |
sudo apt-get install bumpversion
npm install -g semantic-release
npm install -g @semantic-release/changelog
npm install -g @semantic-release/exec
npm install -g @semantic-release/git
npm install -g @semantic-release/github
npm install -g @semantic-release/commit-analyzer
npm install -g @semantic-release/release-notes-generator
- name: Publish to Git Releases and Tags
if: ${{ github.event.workflow_run.conclusion == 'success' }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release #--dry-run --branches 9388_gha Uncomment for testxing purposes
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2 # Try to update version tag every release
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}
repository_url: https://upload.pypi.org/legacy/

4 changes: 1 addition & 3 deletions src/assistant_improve_toolkit/computation_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,10 @@ def format_data(df):
and 'response_context_response_context_IntentCompleted' in df3.columns:
cols = ['log_id', 'response_timestamp', 'response_context_conversation_id', 'request_input', 'response_text',
'response_intents', 'response_entities', 'response_nodes_visited', 'response_dialog_stack',
'response_dialog_request_counter', 'response_dialog_turn_counter',
'response_context_response_context_IntentStarted', 'response_context_response_context_IntentCompleted']
else:
cols = ['log_id', 'response_timestamp', 'response_context_conversation_id', 'request_input', 'response_text',
'response_intents', 'response_entities', 'response_nodes_visited', 'response_dialog_stack',
'response_dialog_request_counter', 'response_dialog_turn_counter']
'response_intents', 'response_entities', 'response_nodes_visited', 'response_dialog_stack']

if 'response_nodes_visited' not in df3.columns:
df3['response_nodes_visited'] = [[] for _ in range(len(df3))]
Expand Down

0 comments on commit 34891f3

Please sign in to comment.