-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9a3642
commit 72af7d9
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | ||
{ | ||
"name": "dev", | ||
"image": "ghcr.io/ten-framework/ten_agent_build:0.2.3", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.autopep8", | ||
"ms-python.vscode-pylance", | ||
"ms-python.python", | ||
"ms-python.debugpy" | ||
] | ||
} | ||
}, | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
"features": { | ||
"ghcr.io/devcontainers/features/git:1": {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: CI | ||
|
||
on: | ||
release: | ||
types: [created] | ||
push: | ||
branches: | ||
- "**" | ||
paths-ignore: | ||
- ".vscode/**" | ||
- ".devcontainer/**" | ||
- ".github/**" | ||
- "!.github/workflows/ci.yml" | ||
- "**.md" | ||
pull_request: | ||
paths-ignore: | ||
- ".vscode/**" | ||
- ".devcontainer/**" | ||
- ".github/**" | ||
- "!.github/workflows/ci.yml" | ||
- "**.md" | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/ten-framework/ten_agent_build:0.2.3 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: "0" | ||
submodules: "true" | ||
|
||
- name: Check ten dependencies | ||
run: | | ||
tman install | ||
- name: Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
run: | | ||
# replace version by tag | ||
jq '.version = "${{ github.ref_name }}"' manifest.json >manifest.gen.json | ||
# check after replace | ||
diff manifest.gen.json manifest.json || true | ||
mv manifest.gen.json manifest.json | ||
jq . manifest.json | ||
# publish to store | ||
tman --verbose --user-token ${{ secrets.TEN_CLOUD_STORE }} publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.pyc | ||
.ten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"python.analysis.extraPaths": [ | ||
".ten/app/ten_packages/system/ten_runtime_python/interface", | ||
".ten/app/ten_packages/system/ten_ai_base/interface", | ||
], | ||
"editor.formatOnSave": true, | ||
} |