mirror of
https://github.com/containers/ramalama.git
synced 2026-02-05 15:47:26 +01:00
adds dev dependency groups
Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>
This commit is contained in:
47
.github/workflows/ci.yml
vendored
47
.github/workflows/ci.yml
vendored
@@ -12,11 +12,17 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
make install-requirements
|
||||||
|
|
||||||
- name: Run format check
|
- name: Run format check
|
||||||
@@ -32,11 +38,17 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
make install-requirements
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
@@ -47,11 +59,17 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: install bats
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
make install-requirements
|
||||||
|
|
||||||
- name: install ollama
|
- name: install ollama
|
||||||
@@ -81,11 +99,17 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: install bats
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
make install-requirements
|
||||||
sudo ./container-images/scripts/build_llama_and_whisper.sh
|
sudo ./container-images/scripts/build_llama_and_whisper.sh
|
||||||
sudo python -m pip install . --prefix=/usr
|
sudo python -m pip install . --prefix=/usr
|
||||||
@@ -113,11 +137,17 @@ jobs:
|
|||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: install bats
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
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
|
make install-requirements
|
||||||
|
|
||||||
- name: install ollama
|
- name: install ollama
|
||||||
@@ -166,6 +196,12 @@ jobs:
|
|||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- name: install golang
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -181,7 +217,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make install-requirements
|
make install-requirements
|
||||||
make validate
|
make validate
|
||||||
pipx install .
|
|
||||||
make bats-nocontainer
|
make bats-nocontainer
|
||||||
|
|
||||||
# FIXME: ci script should be able to run on MAC.
|
# FIXME: ci script should be able to run on MAC.
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,3 +18,4 @@ __pycache__/
|
|||||||
.coverage
|
.coverage
|
||||||
coverage.*
|
coverage.*
|
||||||
htmlcov/
|
htmlcov/
|
||||||
|
.idea/
|
||||||
|
|||||||
24
Makefile
24
Makefile
@@ -38,32 +38,16 @@ help:
|
|||||||
@echo " - make clean"
|
@echo " - make clean"
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
.PHONY: install-detailed-cov-requirements
|
|
||||||
install-detailed-cov-requirements:
|
install-detailed-cov-requirements:
|
||||||
pip install \
|
uv pip install ".[cov-detailed]"
|
||||||
pytest-cov \
|
|
||||||
pytest-func-cov \
|
|
||||||
pytest-report \
|
|
||||||
pytest-json \
|
|
||||||
pytest-html
|
|
||||||
|
|
||||||
|
|
||||||
.PHONY: install-cov-requirements
|
.PHONY: install-cov-requirements
|
||||||
install-cov-requirements:
|
install-cov-requirements:
|
||||||
pip install pytest-cov
|
uv pip install ".[cov]"
|
||||||
|
|
||||||
.PHONY: install-requirements
|
.PHONY: install-requirements
|
||||||
install-requirements:
|
install-requirements:
|
||||||
pip install -U pipx
|
uv pip install ".[dev]"
|
||||||
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
|
|
||||||
|
|
||||||
.PHONY: install-completions
|
.PHONY: install-completions
|
||||||
install-completions: completions
|
install-completions: completions
|
||||||
@@ -125,7 +109,7 @@ ifneq (,$(wildcard /usr/bin/python3))
|
|||||||
/usr/bin/python3 -m compileall -q .
|
/usr/bin/python3 -m compileall -q .
|
||||||
endif
|
endif
|
||||||
|
|
||||||
! grep -ri "#\!/usr/bin/python3" .
|
! grep -ri --exclude-dir ".venv" --exclude-dir "*/.venv" "#\!/usr/bin/python3" .
|
||||||
flake8 */*.py */*/*.py libexec/* bin/*
|
flake8 */*.py */*/*.py libexec/* bin/*
|
||||||
shellcheck *.sh */*.sh */*/*.sh
|
shellcheck *.sh */*.sh */*/*.sh
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,27 @@ maintainers = [
|
|||||||
|
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
dev = [
|
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]
|
[project.urls]
|
||||||
|
|||||||
Reference in New Issue
Block a user