@@ -13,13 +13,14 @@ permissions:
13
13
14
14
jobs :
15
15
tests :
16
- name : ${{ matrix.os }} / ${{ matrix.python-version }}
16
+ name : ${{ matrix.os }} / ${{ matrix.python-version }} / Rust codec ${{ matrix.rust-codec }}
17
17
runs-on : ${{ matrix.os }}-latest
18
18
strategy :
19
19
fail-fast : false
20
20
matrix :
21
21
os : [Ubuntu, MacOS, Windows]
22
22
python-version : ['3.10', '3.11', '3.12', '3.13']
23
+ rust-codec : ['disabled'] # TODO add 'enabled' when the Rust codec is ready
23
24
steps :
24
25
- uses : actions/checkout@v4
25
26
@@ -48,29 +49,27 @@ jobs:
48
49
id : cache
49
50
with :
50
51
path : .venv
51
- key : venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}
52
+ key : venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-rust-codec-${{ matrix.rust-codec }}- ${{ hashFiles('**/poetry.lock') }}
52
53
53
54
- name : Ensure cache is healthy
54
55
if : steps.cache.outputs.cache-hit == 'true'
55
56
shell : bash
56
57
run : poetry run pip --version >/dev/null 2>&1 || rm -rf .venv
57
58
58
59
- name : Install dependencies
60
+ if : matrix.rust-codec == 'disabled'
59
61
shell : bash
60
62
run : poetry install -E all
61
63
64
+ - name : Install dependencies with the Rust codec
65
+ if : matrix.rust-codec == 'enabled'
66
+ shell : bash
67
+ run : poetry install -E all -E rust-codec
68
+
62
69
- name : Download compiled test files
63
70
shell : bash
64
71
run : poetry run poe pull-compiled-tests
65
72
66
73
- name : Execute test suite
67
74
shell : bash
68
75
run : poetry run poe test
69
-
70
- - name : Install dependencies with the Rust codec
71
- shell : bash
72
- run : poetry install -E all -E rust-codec
73
-
74
- - name : Execute test suite with the Rust codec
75
- shell : bash
76
- run : poetry run poe test
0 commit comments