-
Notifications
You must be signed in to change notification settings - Fork 44
48 lines (39 loc) · 1.38 KB
/
inference_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Test Inference Engines
on:
pull_request:
paths:
- 'src/unitxt/inference.py'
- 'tests/inference/*.py'
- '.github/workflows/inference_tests.yml'
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name }}
cancel-in-progress: true
jobs:
inference:
runs-on: ubuntu-latest
env:
OS: ubuntu-latest
UNITXT_DEFAULT_VERBOSITY: error
DATASETS_VERBOSITY: error
HF_HUB_VERBOSITY: error
HF_DATASETS_DISABLE_PROGRESS_BARS: "True"
TQDM_DISABLE: "True"
WML_URL: ${{ secrets.WML_URL }}
WML_PROJECT_ID: ${{ secrets.WML_PROJECT_ID }}
WML_APIKEY: ${{ secrets.WML_APIKEY }}
WX_URL: ${{ secrets.WML_URL }}
WX_PROJECT_ID: ${{ secrets.WML_PROJECT_ID }}
WX_API_KEY: ${{ secrets.WML_APIKEY }}
GENAI_KEY: ${{ secrets.GENAI_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv pip install --system ".[tests,watsonx,inference-tests]"
- run: huggingface-cli login --token ${{ secrets.UNITXT_READ_HUGGINGFACE_HUB_FOR_TESTS }}
- name: Run Tests
run: python -m unittest discover -s tests/inference -p "test_*.py"