-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (36 loc) · 1.39 KB
/
Copy pathtests.yml
File metadata and controls
44 lines (36 loc) · 1.39 KB
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
name: Tests
on:
push:
pull_request:
jobs:
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
# Report every platform, rather than cancelling the rest on the first
# failure. A platform-specific break is the thing this matrix exists to
# surface, and it is easy to miss when siblings are cancelled.
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
include:
# macOS on a single interpreter rather than the full matrix. macOS
# runners bill at a multiple of Linux, and the platform differences
# that bite here are filesystem behaviour, not interpreter version.
- os: macos-latest
python-version: "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install runtime deps
run: pip install -e runtime/python
- name: Run runtime tests
run: python -m unittest discover -s runtime/python/tests -p "test_*.py"
- name: Run sdk adapter tests
run: python -m unittest discover -s sdk/python/tests -p "test_*.py"
- name: Run feature-agent spec tests
if: ${{ hashFiles('tests/test_*.py') != '' }}
run: python -m unittest discover -s tests -p "test_*.py"