Skip to content

Commit 9f0616a

Browse files
authored
Do not use job "prepare" (#3925)
Small optimization: do not use job "prepare".
1 parent 2be3060 commit 9f0616a

File tree

1 file changed

+4
-26
lines changed

1 file changed

+4
-26
lines changed

.github/workflows/build-test.yml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -96,36 +96,14 @@ jobs:
9696
path: ${{ steps.pip-cache.outputs.path }}
9797
dest: ${{ steps.pip-cache.outputs.dest }}
9898

99-
prepare:
100-
name: Prepare
101-
runs-on: Linux
102-
103-
outputs:
104-
matrix: ${{ steps.matrix.outputs.matrix }}
105-
106-
steps:
107-
- name: Inputs
108-
run: |
109-
cat <<EOF
110-
${{ toJSON(inputs) }}
111-
EOF
112-
113-
- name: Matrix
114-
id: matrix
115-
run: |
116-
if [[ -n "${{ inputs.runner_label }}" ]]; then
117-
matrix='{"python": ["3.9"]}'
118-
else
119-
matrix='{"python": ["3.9"], "driver": ["rolling", "lts"]}'
120-
fi
121-
echo "matrix=$matrix" | tee -a $GITHUB_OUTPUT
122-
12399
integration-tests:
124100
name: Integration tests matrix
125-
needs: prepare
126101

127102
strategy:
128-
matrix: ${{ fromJson(needs.prepare.outputs.matrix) }}
103+
matrix:
104+
python:
105+
- "3.9"
106+
driver: ${{ fromJson((inputs.runner_label || '') == '' && '["rolling", "lts"]' || '["rolling"]') }}
129107

130108
uses: ./.github/workflows/build-test-reusable.yml
131109
with:

0 commit comments

Comments
 (0)