forked from alibaba/ROCK
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 964 Bytes
/
Copy pathpython-ci.yml
File metadata and controls
39 lines (32 loc) · 964 Bytes
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
name: Python CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Cleanup old files in /tmp/ray
run: |
[ -d /tmp/ray ] && find /tmp/ray -mindepth 1 -mmin +60 -delete || true
- name: Set up project (install dependencies without building)
run: |
uv sync --all-extras --group test --python 3.11
- name: Run fast tests
run: |
mkdir -p data/logs
echo "🚀 Running fast tests..."
uv run pytest -n auto -m "not need_ray and not need_admin" --reruns 1
- name: Run tests need ray
if: success()
run: |
echo "⚡ Running ray tests..."
uv run pytest -n auto -m "need_ray" --reruns 1
- name: Run tests need admin
if: success()
run: |
echo "🔐 Running admin tests..."
uv run pytest -n auto -m "need_admin" --reruns 1