File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 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/
You can’t perform that action at this time.
0 commit comments