-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.45 KB
/
manual-test.yml
File metadata and controls
53 lines (46 loc) · 1.45 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
name: Manual Test Run
on:
workflow_dispatch:
inputs:
test-pattern:
description: 'Test pattern to run (e.g., test_core.py, test_*gpu*)'
required: false
default: ''
verbose:
description: 'Run tests in verbose mode'
required: false
type: boolean
default: true
jobs:
manual-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: prefix-dev/setup-pixi@v0.9.5
with:
environments: test
- name: Show environment info
run: |
pixi run -e test python -c "import tensorflow as tf; print(f'TensorFlow {tf.__version__}')"
- name: Run specific tests
if: inputs.test-pattern != ''
env:
CUDA_VISIBLE_DEVICES: "-1"
TF_CPP_MIN_LOG_LEVEL: "2"
run: |
if [[ "${{ inputs.verbose }}" == "true" ]]; then
pixi run -e test pytest -v -n auto tests/${{ inputs.test-pattern }}
else
pixi run -e test pytest -n auto tests/${{ inputs.test-pattern }}
fi
- name: Run all tests
if: inputs.test-pattern == ''
env:
CUDA_VISIBLE_DEVICES: "-1"
TF_CPP_MIN_LOG_LEVEL: "2"
run: |
if [[ "${{ inputs.verbose }}" == "true" ]]; then
pixi run -e test pytest -v -n auto --cov=locator --cov-report=xml --cov-report=term-missing
else
pixi run -e test pytest -n auto --cov=locator --cov-report=xml --cov-report=term-missing
fi