-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (37 loc) · 1.4 KB
/
Copy pathci.yml
File metadata and controls
41 lines (37 loc) · 1.4 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
name: ci
on:
push:
pull_request:
permissions:
contents: read
jobs:
unit:
runs-on: ubuntu-latest
steps:
# pinned: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
# pinned: actions/setup-python@v5
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.11"
- run: pip install pytest
- run: python -m pytest -q
validate:
runs-on: ubuntu-latest
# Local equivalent of the upstream plugin-validate action. The official
# action pip-installs hermes-agent from git, which hermes-agent's own
# setup.py build guard rejects (pip/PyPI are unsupported distribution
# methods upstream), and the action has a single revision in history so
# there is no last-good version to pin. This job runs the same admission
# checks (manifest schema, stdlib-only imports, capability probe) via a
# checked-in script instead, with no hermes-agent install and no
# dependency on an upstream fix.
steps:
# pinned: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
# pinned: actions/setup-python@v5
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: "3.11"
- run: pip install pyyaml
- run: python .github/scripts/validate-plugin.py --path .