-
Notifications
You must be signed in to change notification settings - Fork 24
33 lines (31 loc) · 848 Bytes
/
Copy pathmain.yaml
File metadata and controls
33 lines (31 loc) · 848 Bytes
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
name: Stackinator CI
on: [push, pull_request]
jobs:
unittestpy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Validate Schemas
run: |
errors=0
for schema in `find stackinator/schema -type f -name "*.json"`; do
echo $schema
uvx check-jsonschema --check-metaschema $schema
errors=$(($errors + $?))
done
exit $errors
- name: Install Dependencies
run: |
uv sync --group dev
sudo apt-get install -y jq
- name: Run Unit Tests
run: uv run pytest
- name: Run Envvars Test
working-directory: unittests
run: uv run bash ./test-envvars.sh