-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (56 loc) · 1.69 KB
/
Copy pathtest_group.yml
File metadata and controls
58 lines (56 loc) · 1.69 KB
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
49
50
51
52
53
54
55
56
57
58
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
on:
workflow_call:
inputs:
python-version:
required: false
default: "3.14"
type: string
platform:
required: false
default: ubuntu-latest
type: string
test-group:
required: true
type: string
group-label:
required: true
type: string
parallel-tasks:
required: false
type: number
default: 8
test-command:
required: true
type: string
secrets:
SIMVUE_URL:
required: true
SIMVUE_TOKEN:
required: true
permissions:
contents: read
jobs:
object_retrieval:
runs-on: ${{ inputs.platform }}
name: ${{ inputs.group-label }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: ${{ inputs.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v10.2.0
- name: Install dependencies
run: |
uv sync --all-extras --all-groups
uv pip install torch --index-url https://download.pytorch.org/whl/cpu || true
- name: Test with pytest
env:
SIMVUE_URL: ${{ secrets.SIMVUE_URL }}
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
run: |
${{ inputs.test-command }} -x -m "${{ inputs.test-group }}" -c /dev/null -p no:warnings -n ${{ inputs.parallel-tasks }} -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache