Skip to content

Commit

Permalink
Update dependency ubuntu to v24
Browse files Browse the repository at this point in the history
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
renovate[bot] authored and rhatdan committed Sep 29, 2024
1 parent bfa109f commit 019278e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: ci
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: install bats
shell: bash
run: |
sudo apt-get update
sudo apt-get install bats bash
pip install omlmd
sudo apt-get install bats bash codespell
pipx install omlmd black flake8
- name: run test
run: make test

Expand All @@ -21,6 +21,7 @@ jobs:
- name: install golang
shell: bash
run: brew install go
run: make install-requirements
- name: Run a one-line script
shell: bash
run: make validate
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
linux:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Run a one-line script
Expand All @@ -24,7 +24,7 @@ jobs:
run: make test

build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [linux, macos]
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
linux:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Run a one-line script
Expand All @@ -24,7 +24,7 @@ jobs:
run: make test

build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [linux, macos]
steps:
- uses: actions/checkout@v4
Expand Down
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ help:
@echo " - make clean"
@echo


.PHONY:
install-requirements:
@pipx install -q black flake8
$(PYTHON) -m pip install --user -r requirements.txt
pip install "huggingface_hub[cli]==0.25.1"
pip install "omlmd==0.1.4"

.PHONY:
install-program:
install ${SELINUXOPT} -d -m 755 $(DESTDIR)$(BINDIR)
Expand All @@ -52,7 +60,6 @@ install: install-program install-shortnames install-docs
.PHONY:
build:
ifeq ($(OS),Linux)
$(PYTHON) -m pip install --user -r requirements.txt
./container_build.sh
endif

Expand All @@ -66,13 +73,11 @@ docs:

.PHONY: lint
lint:
@pip install -q black flake8
black --line-length 120 --exclude 'venv/*' *.py ramalama/*.py # Format the code
flake8 --max-line-length=120 --exclude=venv *.py ramalama/*.py # Check for any inconsistencies

.PHONY: codespell
codespell:
@pip install -q codespell
codespell --dictionary=- -w

.PHONY: validate
Expand Down

0 comments on commit 019278e

Please sign in to comment.