feat: publishing infernet-container-starter v0.2.0
This commit is contained in:
30
.github/workflows/docker_ci.yaml
vendored
Normal file
30
.github/workflows/docker_ci.yaml
vendored
Normal file
@ -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
|
30
.github/workflows/python_ci.yaml
vendored
Normal file
30
.github/workflows/python_ci.yaml
vendored
Normal file
@ -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
|
Reference in New Issue
Block a user