-
Notifications
You must be signed in to change notification settings - Fork 2
77 lines (64 loc) · 2.27 KB
/
Copy pathci.yml
File metadata and controls
77 lines (64 loc) · 2.27 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Validate JSON files
run: |
find . -name "*.json" -not -path "./.git/*" | while read f; do
python3 -m json.tool "$f" > /dev/null && echo "OK: $f" || exit 1
done
- name: Validate YAML files
run: |
pip install pyyaml -q
find . -name "*.yaml" -o -name "*.yml" | grep -v ".git" | while read f; do
python3 -c "import yaml, sys; yaml.safe_load(open(sys.argv[1]))" "$f" && echo "OK: $f" || exit 1
done
industrial-embodied-ai:
runs-on: ubuntu-latest
defaults:
run:
working-directory: industrial-embodied-ai
steps:
- uses: actions/checkout@v7
- name: Set up Python 3.11
uses: actions/setup-python@v6
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: industrial-embodied-ai/requirements.txt
- name: Install controller test dependencies
run: python -m pip install cryptography
- name: Run controller tests
run: python -m unittest discover -s tests -v
- name: Install artifact validation dependencies
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
run: python -m pip install -r requirements.txt
- name: Verify committed evidence artifacts
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
run: python validate_artifacts.py
embodied-action-receipts:
runs-on: ubuntu-latest
defaults:
run:
working-directory: embodied-action-receipts
steps:
- uses: actions/checkout@v7
- name: Set up Python 3.11
uses: actions/setup-python@v6
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: embodied-action-receipts/requirements.txt
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Verify embodied-action receipt fixtures
run: python -m unittest discover -s tests -v