Skip to content

Commit 6e07439

Browse files
committed
ci: don't install test-only dependencies when we don't need them
1 parent 03b33d4 commit 6e07439

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/actions/setup-dependencies/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ inputs:
33
description: "Python version to setup"
44
required: false
55
default: "3.9"
6+
install-test-deps:
7+
description: "Wether to install 3rd Party dependencies (for tests)"
8+
required: false
9+
default: "true" # unfortunately boolean variables are not supported
610

711
name: "Setup dependencies"
812
description: "Install all required dependencies for worflows to run."
913
runs:
1014
using: "composite"
1115
steps:
12-
- name: Install 3rd party dependencies
16+
- if: inputs.install-test-deps == 'true'
17+
name: Install 3rd party dependencies
1318
run: sudo ./install-deps.sh
1419
shell: bash
1520

.github/workflows/CI.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939

4040
- name: Setup 3rd party dependencies
4141
uses: ./.github/actions/setup-dependencies
42+
with:
43+
install-test-deps: "false"
4244

4345
- name: Setup Nix
4446
uses: cachix/install-nix-action@v30
@@ -256,6 +258,8 @@ jobs:
256258

257259
- name: Setup 3rd party dependencies
258260
uses: ./.github/actions/setup-dependencies
261+
with:
262+
install-test-deps: "false"
259263

260264
- name: Build sdist
261265
uses: PyO3/maturin-action@v1

0 commit comments

Comments
 (0)