1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 06:46:39 +01:00

adds dev dependency groups

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>
This commit is contained in:
Ian Eaves
2025-06-06 18:11:30 -05:00
parent 268e47ccc0
commit f65529bda7
4 changed files with 67 additions and 27 deletions

View File

@@ -12,11 +12,17 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and activate the environment
uses: astral-sh/setup-uv@v6
with:
activate-environment: true
- name: Install dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y bash codespell python3-argcomplete pipx
sudo apt-get install -y bash codespell python3-argcomplete
make install-requirements
- name: Run format check
@@ -32,11 +38,17 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and activate the environment
uses: astral-sh/setup-uv@v6
with:
activate-environment: true
- name: Install dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y bash codespell python3-argcomplete pipx
sudo apt-get install -y bash codespell python3-argcomplete
make install-requirements
- name: Run unit tests
@@ -47,11 +59,17 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and activate the environment
uses: astral-sh/setup-uv@v6
with:
activate-environment: true
- name: install bats
shell: bash
run: |
sudo apt-get update
sudo apt-get install podman bats bash codespell python3-argcomplete pipx
sudo apt-get install podman bats bash codespell python3-argcomplete
make install-requirements
- name: install ollama
@@ -81,11 +99,17 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and activate the environment
uses: astral-sh/setup-uv@v6
with:
activate-environment: true
- name: install bats
shell: bash
run: |
sudo apt-get update
sudo apt-get install podman bats bash codespell python3-argcomplete pipx git cmake libcurl4-openssl-dev
sudo apt-get install podman bats bash codespell python3-argcomplete git cmake libcurl4-openssl-dev
make install-requirements
sudo ./container-images/scripts/build_llama_and_whisper.sh
sudo python -m pip install . --prefix=/usr
@@ -113,11 +137,17 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and activate the environment
uses: astral-sh/setup-uv@v6
with:
activate-environment: true
- name: install bats
shell: bash
run: |
sudo apt-get update
sudo apt-get install bats bash codespell python3-argcomplete pipx
sudo apt-get install bats bash codespell python3-argcomplete
make install-requirements
- name: install ollama
@@ -166,6 +196,12 @@ jobs:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and activate the environment
uses: astral-sh/setup-uv@v6
with:
activate-environment: true
- name: install golang
shell: bash
run: |
@@ -181,7 +217,6 @@ jobs:
run: |
make install-requirements
make validate
pipx install .
make bats-nocontainer
# FIXME: ci script should be able to run on MAC.

1
.gitignore vendored
View File

@@ -18,3 +18,4 @@ __pycache__/
.coverage
coverage.*
htmlcov/
.idea/

View File

@@ -38,32 +38,16 @@ help:
@echo " - make clean"
@echo
.PHONY: install-detailed-cov-requirements
install-detailed-cov-requirements:
pip install \
pytest-cov \
pytest-func-cov \
pytest-report \
pytest-json \
pytest-html
uv pip install ".[cov-detailed]"
.PHONY: install-cov-requirements
install-cov-requirements:
pip install pytest-cov
uv pip install ".[cov]"
.PHONY: install-requirements
install-requirements:
pip install -U pipx
pipx install \
argcomplete~=3.0 \
black~=25.0 \
codespell~=2.0 \
flake8~=7.0 \
huggingface_hub~=0.28.0 \
isort~=6.0 \
pytest~=8.3 \
wheel~=0.45.0
uv pip install ".[dev]"
.PHONY: install-completions
install-completions: completions
@@ -125,7 +109,7 @@ ifneq (,$(wildcard /usr/bin/python3))
/usr/bin/python3 -m compileall -q .
endif
! grep -ri "#\!/usr/bin/python3" .
! grep -ri --exclude-dir ".venv" --exclude-dir "*/.venv" "#\!/usr/bin/python3" .
flake8 */*.py */*/*.py libexec/* bin/*
shellcheck *.sh */*.sh */*/*.sh

View File

@@ -21,7 +21,27 @@ maintainers = [
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest>=7.0",
"argcomplete~=3.0",
"black~=25.0",
"codespell~=2.0",
"flake8~=7.0",
"huggingface_hub~=0.28.0",
"isort~=6.0",
"pytest~=8.3",
"wheel~=0.45.0"
]
cov = [
"pytest-cov",
]
cov-detailed = [
"pytest-cov",
"pytest-func-cov",
"pytest-report",
"pytest-json",
"pytest-html"
]
[project.urls]