Skip to content

Commit

Permalink
Switch to workflow_call for GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay committed Feb 12, 2024
1 parent b953327 commit d905a99
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Run tests

on:
Expand All @@ -6,26 +7,5 @@ on:
pull_request:

jobs:
setup:
runs-on: ubuntu-latest
outputs:
strategy: ${{steps.load.outputs.strategy}}

steps:
- uses: actions/checkout@v2
with:
repository: colcon/ci
- id: load
run: echo "::set-output name=strategy::$(echo $(cat strategy.json))"

pytest:
needs: [setup]
strategy: ${{fromJson(needs.setup.outputs.strategy)}}
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{matrix.python}}
- uses: colcon/ci@v1
uses: colcon/ci/.github/workflows/pytest.yaml@main

0 comments on commit d905a99

Please sign in to comment.