forked from home-assistant/intents
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 998 Bytes
/
ci.yaml
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
---
name: CI
# yamllint disable-line rule:truthy
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
# yamllint disable-line rule:line-length
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- run: script/setup
- run: python3 -m script.intentfest add_language test_add_language_generates_valid_data "CI Added Language"
- name: Register intentfest problem matcher
run: |
echo "::add-matcher::.github/workflows/matchers/intentfest.json"
- run: script/lint
- run: script/test
- run: python3 -m script.intentfest parse --language en --sentence 'turn on the lights in the kitchen'
- run: python3 -m script.intentfest codeowners --check