Skip to content

Commit 107d605

Browse files
committed
Add CI workflow
1 parent b3bae20 commit 107d605

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
validate:
14+
name: Validate BootReleaseSet contracts
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Set up Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.11"
23+
- name: Validate examples
24+
run: python src/sourceos_boot/validate_boot_release_set.py examples/*.json
25+
- name: Run tests
26+
run: |
27+
python -m pip install --upgrade pip pytest
28+
python -m pytest

0 commit comments

Comments
 (0)