-
Notifications
You must be signed in to change notification settings - Fork 302
42 lines (40 loc) · 1009 Bytes
/
test.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
name: Test
on:
workflow_dispatch:
push:
paths:
- "**.py"
pull_request:
paths:
- "**.py"
- "poetry.lock"
jobs:
tests:
runs-on: "ubuntu-latest"
name: Run tests
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: ./.github/workflows/poetry-composite-action
- name: Prepare test env
run: bash tests/setup.sh
- name: Install poetry
run: poetry install
- name: Run tests
run: |
poetry run pytest \
-qq \
--timeout=9 \
--durations=10 \
-n auto \
--cov custom_components.alexa_media \
--cov-report xml \
-o console_output_style=count \
-p no:sugar \
tests
poetry run coverage lcov
- name: Upload Coverage Results
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov