Skip to content

Bump black from 19.10b0 to 24.3.0 #40

Bump black from 19.10b0 to 24.3.0

Bump black from 19.10b0 to 24.3.0 #40

name: Build and Test
on:
pull_request:
paths-ignore:
- "README.md"
- "Makefile"
- "Dockerfile"
jobs:
lint-testing:
name: Code Formatting Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install -U 'pip<20'
pip install -r requirements-dev.txt
- name: Code Formatting Tests
working-directory: ${{ github.workspace }}
run: |
make lint
type-testing:
name: Type Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install -U 'pip<20'
pip install -r requirements-dev.txt
- name: Type Checking
working-directory: ${{ github.workspace }}
run: |
make types
data-validation:
name: Rasa Data Validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install -U 'pip<20'
pip install -r requirements-dev.txt
- name: Rasa Data Validation
working-directory: ${{ github.workspace }}
run: |
rasa data validate --debug
training-testing:
name: Testing Stories
runs-on: ubuntu-latest
needs: [data-validation]
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v1
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install -U 'pip<20'
pip install -r requirements-dev.txt
- name: Train Model
working-directory: ${{ github.workspace }}
run: |
rasa train
- name: Test Training Stories
working-directory: ${{ github.workspace }}
run: |
rasa test --stories tests/e2e-stories.md --fail-on-prediction-errors --e2e
- name: Cross-validate NLU model
run: |
rasa test nlu -f 5 --cross-validation
python format_results.py
- name: post cross-val results to PR
uses: amn41/comment-on-pr@comment-file-contents
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: results.md
- name: Upload model
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@master
with:
name: model
path: models