File tree Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Expand file tree Collapse file tree 2 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -37,32 +37,34 @@ jobs:
3737 - uses : actions/checkout@v4
3838 with :
3939 fetch-depth : 0
40-
4140 - name : Nvidia SMI sanity check
4241 run : nvidia-smi
43-
44- - name : Install Python
45- uses : actions/setup-python@v5
42+ - uses : actions/setup-python@v5
4643 with :
4744 python-version : " 3.12"
48-
49- - name : Install UV
50- uses : hynek/setup-cached-uv@v2
45+ - uses : hynek/setup-cached-uv@v2
5146 with :
5247 cache-dependency-path : pyproject.toml
53-
5448 - name : Install package
5549 run : uv pip install --system -e .[test,full] cupy-cuda12x --extra-index-url=https://pypi.nvidia.com --index-strategy=unsafe-best-match
56-
5750 - name : List installed packages
5851 run : uv pip list
59-
6052 - name : Run tests
61- run : pytest
62-
63- - name : Remove 'run-gpu-ci' Label
53+ run : |
54+ coverage run -m pytest -m "not benchmark"
55+ coverage report
56+ # https://github.com/codecov/codecov-cli/issues/648
57+ coverage xml
58+ rm test-data/.coverage
59+ - uses : codecov/codecov-action@v5
60+ with :
61+ name : GPU tests
62+ fail_ci_if_error : true
63+ files : test-data/coverage.xml
64+ token : ${{ secrets.CODECOV_TOKEN }}
65+ - name : Remove “run-gpu-ci” Label
6466 if : always()
6567 uses : actions-ecosystem/action-remove-labels@v1
6668 with :
67- labels : ' run-gpu-ci'
69+ labels : run-gpu-ci
6870 github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1313
1414jobs :
1515 test :
16+ name : Minimal test job
1617 runs-on : ubuntu-latest
1718 strategy :
1819 matrix :
1920 python-version : ["3.11", "3.13"]
20- extras : [min, full]
2121 steps :
2222 - uses : actions/checkout@v4
2323 - uses : actions/setup-python@v5
2727 with :
2828 enable-cache : true
2929 cache-dependency-glob : pyproject.toml
30- - run : uv pip install --system -e .[test${{ matrix.extras == 'full' && ',full' || '' }} ]
30+ - run : uv pip install --system -e .[test]
3131 - run : |
3232 coverage run -m pytest -m "not benchmark"
3333 coverage report
@@ -36,10 +36,12 @@ jobs:
3636 rm test-data/.coverage
3737 - uses : codecov/codecov-action@v5
3838 with :
39+ name : Min tests
3940 fail_ci_if_error : true
4041 files : test-data/coverage.xml
4142 token : ${{ secrets.CODECOV_TOKEN }}
4243 bench :
44+ name : CPU Benchmarks
4345 runs-on : ubuntu-latest
4446 steps :
4547 - uses : actions/checkout@v4
5658 run : pytest -m benchmark --codspeed
5759 token : ${{ secrets.CODSPEED_TOKEN }}
5860 check :
61+ name : Static checks
5962 runs-on : ubuntu-latest
6063 strategy :
6164 matrix :
You can’t perform that action at this time.
0 commit comments