Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/_matrix-and-codecov-on-merge-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ on:
default: false
required: false
type: boolean
run:
description: 'Extra CLI commands to run after installing the project'
default: 'echo "No extra commands"'
required: false
type: string
secrets:
CODECOV_TOKEN:
description: 'Codecov token'
Expand Down Expand Up @@ -73,6 +78,11 @@ jobs:
fi
python -m pip install . --no-deps

- name: Run extra user-defined CLI commands
run: |
echo "${{ inputs.run }}" > user-commands.sh
bash user-commands.sh

- name: Start Xvfb for ubuntu-latest only
if: matrix.os == 'ubuntu-latest' && inputs.headless
run: |
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/_tests-on-pr-no-codecov-no-headless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
default: 3.13
required: false
type: number
run:
description: 'Extra CLI commands to run after installing the project'
default: 'echo "No extra commands"'
required: false
type: string

jobs:
validate:
Expand Down Expand Up @@ -40,6 +45,11 @@ jobs:
conda install --file requirements/test.txt
python -m pip install . --no-deps

- name: Run extra user-defined CLI commands
run: |
echo "${{ inputs.run }}" > user-commands.sh
bash user-commands.sh

- name: Run unit tests
run: |
pytest --cov
Expand Down
23 changes: 23 additions & 0 deletions news/configure-run.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* Add optional run: commands for extra CLI commands in matrix and test-on-pr-no-codecov-no-headless CI.

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>