-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.32 KB
/
test-train-model.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Test & Train Model
on:
push:
workflow_dispatch:
# on:
# pull_request:
# paths-ignore:
# - "README.md"
# - "Makefile"
# - "Dockerfile"
jobs:
training-testing:
name: Training and Testing
runs-on: ubuntu-latest
# needs: [lint-testing, type-testing]
steps:
- uses: actions/checkout@v1
- id: files
uses: jitterbit/get-changed-files@v1
- name: set_training
if: |
contains( steps.files.outputs.all, 'data/' )
|| contains( steps.files.outputs.all, 'config.yml' )
run: echo "RUN_TRAINING=true" >> $GITHUB_ENV
- name: Echo TEST_ENV
run: echo TEST_ENV=$TEST_ENV
- name: Echo RASA_PRO_LICENSE
run: echo RASA_PRO_LICENSE=$RASA_PRO_LICENSE
- name: Rasa Train and Test GitHub Action
# if: env.RUN_TRAINING == 'true'
uses: RasaHQ/rasa-train-test-gha@main
with:
rasa_image: 'rasa/rasa-pro:3.10.12'
# rasa_version: '3.10.12'
test_type: nlu
data_validate: false
cross_validation: false
publish_summary: false
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload model
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@main
with:
name: model
path: models