Repository navigation
59 lines (51 loc) · 1.56 KB
/
Copy pathpython.yml
File metadata and controls
59 lines (51 loc) · 1.56 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Python toolset
# The APK workflow only fires on changes under hermes-android-bridge/, so until
# now a change to the Python side ran no checks at all — including the tests
# that guard the relay allowlists, which is exactly where this project keeps
# breaking silently.
#
# This lands together with the fixes that make the suite deterministic. Before
# them the mic-stream negative-path tests failed on about one full run in three,
# and a workflow that is red a third of the time teaches everyone to ignore red.
on:
push:
branches: [main, master]
paths:
- 'tools/**'
- 'tests/**'
- 'hermes-android-plugin/**'
- 'pyproject.toml'
- 'setup.py'
- 'requirements.txt'
- '.github/workflows/python.yml'
pull_request:
paths:
- 'tools/**'
- 'tests/**'
- 'hermes-android-plugin/**'
- 'pyproject.toml'
- 'setup.py'
- 'requirements.txt'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The floor declared in pyproject, and a current release. Anything that
# only breaks on one of the two is worth knowing about.
python-version: ['3.11', '3.13']
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install
run: pip install -e ".[dev]"
- name: Test
run: pytest -q