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 13, 2024
1 parent 2fdf695 commit a0d6223
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@v3
with:
repository: colcon/ci
- id: load
run: echo "strategy=$(echo $(cat strategy.json))" >> $GITHUB_OUTPUT

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

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

0 comments on commit a0d6223

Please sign in to comment.