Skip to content

Commit 024799e

Browse files
committed
update workflows
1 parent 2c69438 commit 024799e

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/new_tasks.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Tasks Modified
2-
2+
env:
3+
UV_SYSTEM_PYTHON: 1
34
on:
45
push:
56
branches:
@@ -53,15 +54,16 @@ jobs:
5354
- name: Install dependencies
5455
if: steps.changed-tasks.outputs.tasks_any_modified == 'true' || steps.changed-tasks.outputs.api_any_modified == 'true'
5556
run: |
56-
uv venv
5757
uv pip install -e '.[dev,ifeval,unitxt,math,longbench]' --extra-index-url https://download.pytorch.org/whl/cpu
5858
- name: Test with pytest
5959
# if new tasks are added, run tests on them
6060
if: steps.changed-tasks.outputs.tasks_any_modified == 'true'
61-
run: uv run pytest tests/test_tasks.py -s -vv
61+
run: python -m pytest tests/test_tasks.py -s -vv
6262
# if api is modified, run tests on it
6363
- name: Test more tasks with pytest
6464
env:
6565
API: true
6666
if: steps.changed-tasks.outputs.api_any_modified == 'true'
67-
run: uv run pytest tests/test_tasks.py -s -vv
67+
run: python -m pytest tests/test_tasks.py -s -vv
68+
- name: Minimize uv cache
69+
run: uv cache prune --ci

.github/workflows/unit_tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33
# just comment out unwanted steps to turn off the test.
44
name: Unit Tests
5-
5+
env:
6+
UV_SYSTEM_PYTHON: 1
67
on:
78
push:
89
branches:
@@ -31,6 +32,8 @@ jobs:
3132
env:
3233
SKIP: "no-commit-to-branch,mypy"
3334
uses: pre-commit/[email protected]
35+
- name: Minimize uv cache
36+
run: uv cache prune --ci
3437
# Job 2
3538
testcpu:
3639
name: CPU Tests
@@ -61,12 +64,11 @@ jobs:
6164
6265
- name: Install dependencies
6366
run: |
64-
uv venv
6567
uv pip install -e '.[dev,unitxt]' --extra-index-url https://download.pytorch.org/whl/cpu
6668
uv pip install hf_xet
6769
6870
- name: Test with pytest
69-
run: uv run pytest --showlocals -s -vv -n=auto --ignore=tests/models/test_openvino.py --ignore=tests/models/test_hf_steered.py
71+
run: python -m pytest --showlocals -s -vv -n=auto --ignore=tests/models/test_openvino.py --ignore=tests/models/test_hf_steered.py
7072
continue-on-error: true # Continue workflow even if tests fail
7173

7274
# Save test artifacts
@@ -77,6 +79,9 @@ jobs:
7779
path: |
7880
test_logs/*
7981
82+
- name: Minimize uv cache
83+
run: uv cache prune --ci
84+
8085
# testmodels:
8186
# name: External LM Tests
8287
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)