-
Notifications
You must be signed in to change notification settings - Fork 4
104 lines (88 loc) · 2.74 KB
/
tests-on-push.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
name: Tests on Push
on:
push:
branches-ignore:
- main
env:
DSP_TOOLS_TESTING: true
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout dsp-tools repo
uses: actions/checkout@v4
- name: Install poetry, python, and dependencies
uses: ./.github/actions/setup
- name: build docs
run: poetry run mkdocs build --strict
- name: check external links in docs
run: |
npm install -g markdown-link-validator
poetry exec check-links
- name: markdownlint
run: poetry exec markdownlint
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout dsp-tools repo
uses: actions/checkout@v4
- name: Install poetry, python, and dependencies
uses: ./.github/actions/setup
- name: Linting with ruff
run: poetry exec ruff-check-github
- name: Formatting with ruff
run: poetry exec ruff-format
- name: Linting with mypy
run: poetry exec mypy
- name: Linting with darglint
run: poetry exec darglint
unittests:
runs-on: ubuntu-latest
steps:
- name: Checkout dsp-tools repo
uses: actions/checkout@v4
- name: Install poetry, python, and dependencies
uses: ./.github/actions/setup
- name: unittests
run: poetry exec unittests
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout dsp-tools repo
uses: actions/checkout@v4
- name: Install poetry, python, and dependencies
uses: ./.github/actions/setup
- name: integration-tests
run: poetry exec integration-tests
benchmarking:
runs-on: ubuntu-latest
steps:
- name: Checkout dsp-tools repo
uses: actions/checkout@v4
- name: Install poetry, python, and dependencies
uses: ./.github/actions/setup
- name: benchmarking
run: poetry run pytest -s test/benchmarking/
e2e-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout dsp-tools repo
uses: actions/checkout@v4
- name: Install poetry, python, and dependencies
uses: ./.github/actions/setup
- name: start stack
run: poetry run dsp-tools start-stack --no-prune
- name: e2e tests
run: poetry exec e2e-tests
- name: stop stack # see if this command can run (it isn't tested anywhere else)
run: poetry run dsp-tools stop-stack
distribution:
runs-on: ubuntu-latest
steps:
- name: Checkout dsp-tools repo
uses: actions/checkout@v4
- name: Install python & poetry, build & install wheel, install pytest
uses: ./.github/actions/setup-from-wheel
- name: distribution tests
run: pytest test/distribution/