Repository navigation
42 lines (38 loc) · 1.45 KB
/
Copy pathci.yml
File metadata and controls
42 lines (38 loc) · 1.45 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
name: ci
on:
push:
pull_request:
permissions:
contents: read
jobs:
unit:
runs-on: ubuntu-latest
steps:
# pinned: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
# pinned: actions/setup-python@v5
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
with:
python-version: "3.11"
- run: pip install pytest==9.1.1
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1
# pinned: actions/setup-python@v5
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
with:
python-version: "3.11"
- run: pip install pyyaml==6.0.3 ruff==0.16.8
- run: python .github/scripts/validate-plugin.py --path .
- run: ruff check .