Fix incorrect repository for targeting composite action #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
workflow_call: | |
inputs: | |
codecov: | |
description: 'run codecov action after testing' | |
default: false | |
required: false | |
type: boolean | |
matrix-filter: | |
description: 'jq filter string indicating which configuration(s) should be included' | |
default: '.' | |
required: false | |
type: string | |
repository: | |
description: 'repository to test if different from current' | |
default: '' | |
required: false | |
type: string | |
setup-repository: | |
description: 'repository used during job setup' | |
default: 'colcon/ci' | |
required: false | |
type: string | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
outputs: | |
strategy: ${{ steps.load.outputs.strategy }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ inputs.setup-repository }} | |
- id: load | |
run: | | |
strategy=$(jq -c -M '${{ inputs.matrix-filter }}' strategy.json) | |
echo "strategy=${strategy}" >> $GITHUB_OUTPUT | |
pytest: | |
needs: [setup] | |
strategy: ${{ fromJson(needs.setup.outputs.strategy) }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ inputs.repository }} | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- uses: ${{ inputs.setup-repository }}@main | |
- uses: codecov/codecov-action@v3 | |
if: ${{ inputs.codecov }} |