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
name: Test the Python bindings
# The name matters. python-release.yml keys its workflow_run trigger off it,
# so renaming this silently stops every release.
on:
push:
branches:
paths:
- 'python/**'
- 'src/**'
- 'Cargo.toml'
- '.github/workflows/python-test.yml'
pull_request:
branches:
paths:
- 'python/**'
- 'src/**'
- 'Cargo.toml'
- '.github/workflows/python-test.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
uses: GregorLueg/personal-actions/.github/workflows/python-maturin-test.yml@v1
with:
package: evoc_rs
# scikit-learn is test-only, for the `clone` compatibility check.
extra-deps: 'scikit-learn'
# `gpu` is a default feature, so the matrix above builds it. Hosted
# runners have no adapter, so `gpu_available()` is False and the GPU
# tests skip: this proves the feature compiles and that a GPU wheel
# degrades cleanly on a machine without a device, not that the kernels
# are correct. Kernel correctness needs a runner with a GPU.
cpu-only-args: '--no-default-features'