Skip to content

Commit cf7515d

Browse files
committed
chore(satellite): sync gaia from aicom monorepo
Auto-generated by scripts/mirror_satellites.sh
0 parents  commit cf7515d

87 files changed

Lines changed: 9232 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coverage

52 KB
Binary file not shown.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Bug report
2+
description: Something is broken or incorrect
3+
labels: ["bug"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thanks for filing a bug. Include enough detail for a maintainer to reproduce.
9+
- type: textarea
10+
id: summary
11+
attributes:
12+
label: Summary
13+
description: What went wrong in one or two sentences?
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: steps
18+
attributes:
19+
label: Steps to reproduce
20+
placeholder: |
21+
1. ...
22+
2. ...
23+
3. ...
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: expected
28+
attributes:
29+
label: Expected behavior
30+
validations:
31+
required: true
32+
- type: textarea
33+
id: actual
34+
attributes:
35+
label: Actual behavior
36+
validations:
37+
required: true
38+
- type: input
39+
id: version
40+
attributes:
41+
label: Version or commit
42+
placeholder: v1.2.3 or main@abc1234
43+
- type: dropdown
44+
id: component
45+
attributes:
46+
label: Area
47+
options:
48+
- CI / build
49+
- Documentation
50+
- Hub / protocol
51+
- SDK / client
52+
- UI / frontend
53+
- Other
54+
validations:
55+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Security policy
4+
url: mailto:security@aicom.io
5+
about: Report vulnerabilities responsibly (see SECURITY.md in this repository)
6+
- name: Ecosystem docs
7+
url: https://modeldev.modelmarket.dev
8+
about: AI-Factory + AIMarket overview and live demos
9+
issue_templates:
10+
- name: Bug report
11+
description: Something is broken or incorrect
12+
labels: ["bug"]
13+
filename: bug_report.yml
14+
- name: Feature request
15+
description: Propose an improvement
16+
labels: ["enhancement"]
17+
filename: feature_request.yml
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Feature request
2+
description: Propose an improvement
3+
labels: ["enhancement"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Describe the problem and the change you want. Link related issues or specs if any.
9+
- type: textarea
10+
id: problem
11+
attributes:
12+
label: Problem / use case
13+
description: What pain point does this solve?
14+
validations:
15+
required: true
16+
- type: textarea
17+
id: proposal
18+
attributes:
19+
label: Proposed solution
20+
validations:
21+
required: true
22+
- type: textarea
23+
id: alternatives
24+
attributes:
25+
label: Alternatives considered
26+
- type: checkboxes
27+
id: scope
28+
attributes:
29+
label: Contribution
30+
options:
31+
- label: I am willing to open a PR for this
32+
required: false

.github/pull_request_template.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Summary
2+
3+
<!-- What changed and why (1–3 sentences). -->
4+
5+
## Type
6+
7+
- [ ] Bug fix
8+
- [ ] Feature
9+
- [ ] Refactor / chore
10+
- [ ] Docs
11+
- [ ] Security
12+
13+
## Checklist
14+
15+
- [ ] Tests added or updated (or N/A — explain why)
16+
- [ ] CI passes locally or on fork
17+
- [ ] No secrets, API keys, or `.env` values committed
18+
- [ ] Docs updated if behavior or env vars changed
19+
- [ ] Breaking changes called out below (if any)
20+
21+
## Breaking changes
22+
23+
<!-- None, or describe migration steps. -->
24+
25+
## Test plan
26+
27+
<!-- How a reviewer can verify this PR. -->

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ci-${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
test:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 15
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: actions/setup-python@v5
25+
with:
26+
python-version: "3.12"
27+
cache: pip
28+
29+
- name: Install oracle-core + gaia
30+
run: |
31+
python -m pip install --upgrade pip
32+
if [[ -d vendor/oracle-core ]]; then
33+
pip install -e vendor/oracle-core -e ".[dev]"
34+
else
35+
pip install -e ".[dev]"
36+
fi
37+
pip install pytest-cov
38+
39+
- name: Pytest + coverage
40+
run: |
41+
python -m pytest tests/ -q --tb=short --maxfail=5 \
42+
--cov=gaia --cov-report=term-missing --cov-report=json:coverage.json
43+
python3 scripts/generate_coverage_badge.py coverage.json docs/badges/coverage.svg
44+
python3 scripts/generate_tests_badge.py --rootdir . --out docs/badges/tests.json
45+
echo "Coverage: $(grep -oE '[0-9]+%' docs/badges/coverage.svg | tail -1)"
46+
echo "Tests: $(python3 -c "import json;print(json.load(open('docs/badges/tests.json'))['message'])")"

.github/workflows/pages.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Pages — landing
2+
3+
# Publish docs/landing/ → https://alexar76.github.io/gaia/
4+
on:
5+
push:
6+
branches: [main]
7+
paths:
8+
- docs/landing/**
9+
- .github/workflows/pages.yml
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: pages-gaia
19+
cancel-in-progress: true
20+
21+
jobs:
22+
deploy:
23+
runs-on: ubuntu-latest
24+
environment:
25+
name: github-pages
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Ensure Pages source is GitHub Actions
31+
continue-on-error: true
32+
env:
33+
GH_TOKEN: ${{ github.token }}
34+
run: |
35+
gh api --method PUT "/repos/${{ github.repository }}/pages" \
36+
-f build_type=workflow
37+
38+
- name: Prepare landing artifact
39+
run: touch docs/landing/.nojekyll
40+
41+
- uses: actions/configure-pages@v5
42+
43+
- uses: actions/upload-pages-artifact@v3
44+
with:
45+
path: docs/landing
46+
47+
- id: deployment
48+
uses: actions/deploy-pages@v4

.github/workflows/publish-ghcr.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish to GHCR
2+
3+
# Docker image: ghcr.io/alexar76/gaia:<tag>
4+
# Triggered when a GitHub Release is published, or via workflow_dispatch.
5+
6+
on:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
jobs:
16+
push:
17+
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'v')
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Meta
29+
id: meta
30+
run: |
31+
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
32+
echo "tag=latest" >> "$GITHUB_OUTPUT"
33+
else
34+
echo "tag=${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT"
35+
fi
36+
37+
- name: Build and push
38+
uses: docker/build-push-action@v6
39+
with:
40+
context: .
41+
file: Dockerfile.standalone
42+
push: true
43+
tags: |
44+
ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.tag }}
45+
ghcr.io/${{ github.repository }}:latest

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.12"
21+
22+
- name: Install and test
23+
run: |
24+
python -m pip install --upgrade pip build
25+
if [[ -d vendor/oracle-core ]]; then
26+
pip install -e vendor/oracle-core -e ".[dev]"
27+
else
28+
pip install -e ".[dev]"
29+
fi
30+
python -m pytest tests/ -q --maxfail=5
31+
32+
- name: Build wheel and sdist
33+
run: python -m build
34+
35+
- name: Upload release artifacts
36+
uses: softprops/action-gh-release@v2
37+
with:
38+
files: |
39+
dist/*
40+
generate_release_notes: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
data/
2+
__pycache__/

0 commit comments

Comments
 (0)