forked from ScythianDeso6/infernet-container-starter
-
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.
Merge pull request #8 from ritual-net/staging
feat: publishing infernet-container-starter v0.2.0
- Loading branch information
Showing
156 changed files
with
6,121 additions
and
256 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,30 @@ | ||
# pre-commit workflow | ||
# | ||
# Ensures the codebase passes the pre-commit stack. | ||
|
||
name: Build Docker Images | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
project: [ "hello-world", "gpt4", "onnx-iris", "prompt-to-nft", "tgi-llm", "torch-iris"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Run build example container | ||
env: | ||
project: ${{ matrix.project }} | ||
CI: true | ||
run: make build-container platform=linux/amd64 |
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,30 @@ | ||
# pre-commit workflow | ||
# | ||
# Ensures the codebase passes the pre-commit stack. | ||
|
||
name: pre-commit ci | ||
|
||
on: [push] | ||
|
||
jobs: | ||
python_ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install UV | ||
run: python -m pip install uv | ||
|
||
- name: Create virtual environment | ||
run: uv venv | ||
|
||
- name: Activate virtual environment | ||
run: | | ||
. .venv/bin/activate | ||
echo PATH=$PATH >> $GITHUB_ENV | ||
- name: Install dependencies | ||
run: uv pip install -r requirements.txt | ||
|
||
- name: Run pre-commit hooks | ||
run: pre-commit run --all-files --show-diff-on-failure |
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
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
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,87 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.0.289 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy-hello-world | ||
name: mypy hello-world | ||
entry: mypy --strict | ||
files: ^projects/hello-world/container/ | ||
language: system | ||
types: [python] | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy-torch-iris | ||
name: mypy torch-iris | ||
entry: mypy --strict | ||
files: ^projects/torch-iris/container/ | ||
language: system | ||
types: [python] | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy-onnx-iris | ||
name: mypy onnx-iris | ||
entry: mypy --strict | ||
files: ^projects/onnx-iris/container/ | ||
language: system | ||
types: [python] | ||
|
||
|
||
- repo: local | ||
hooks: | ||
- id: mypy-tgi-llm-container | ||
name: mypy tgi-llm container | ||
entry: mypy --strict | ||
files: ^projects/tgi-llm/container | ||
language: system | ||
types: [python] | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy-tgi-llm-ui | ||
name: mypy tgi-llm ui | ||
entry: mypy --strict | ||
files: ^projects/tgi-llm/ui | ||
language: system | ||
types: [python] | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy-gpt4 | ||
name: mypy gpt4 | ||
entry: mypy --strict | ||
files: ^projects/gpt4/container | ||
language: system | ||
types: [python] | ||
|
||
- repo: local | ||
hooks: | ||
- id: mypy-prompt-to-nft | ||
name: mypy prompt-to-nft | ||
entry: mypy --strict | ||
files: ^projects/prompt-to-nft/container | ||
language: system | ||
types: [python] | ||
|
||
# Default pre-commit hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
# Ensure EOF exists | ||
- id: end-of-file-fixer | ||
# Prevent adding large files | ||
- id: check-added-large-files | ||
args: ["--maxkb=5000"] | ||
# Newline at end of file | ||
- id: trailing-whitespace |
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
Oops, something went wrong.