Skip to content

Commit ae3ffac

Browse files
Add github actions workflow file
Signed-off-by: Adarsh Anand <adarsh.anand@intel.com>
1 parent 0a49cd9 commit ae3ffac

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#
2+
# Copyright (C) 2025 Intel Corporation
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
# This GitHub Actions workflow is named "LLMart Test Runner".
7+
# It is triggered on push and pull request events to the "main" branches.
8+
# The workflow consists of a single job named "build" that runs on the latest Ubuntu environment.
9+
# The job sets an environment variable HUGGINGFACE_TOKEN using a secret.
10+
# The job performs the following steps:
11+
# 1. Checks out the repository using the actions/checkout@v4 action.
12+
# 2. Installs the 'uv' tool and the 'huggingface_hub' Python package, then logs in to Hugging Face using the provided token.
13+
# 3. Runs the commands specified in the Makefile located in the root directory.
14+
# 4. Runs the commands specified in the Makefile located in the 'examples/' directory and performs cleanup.
15+
16+
name: LLMart Test Runner
17+
18+
on:
19+
push:
20+
branches: [ "main" ]
21+
pull_request:
22+
branches: [ "main" ]
23+
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
env:
28+
HUGGINGFACE_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
29+
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: Install uv, huggingface_hub and login
34+
run: |
35+
curl -LsSf https://astral.sh/uv/install.sh | sh
36+
pip install huggingface_hub
37+
echo -e "${HUGGINGFACE_TOKEN}\nY\n" | huggingface-cli login
38+
39+
- name: Run README commands
40+
run: make
41+
42+
- name: Run all examples and cleanup
43+
run: make -C examples/

0 commit comments

Comments
 (0)