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 10ee250 commit a795ba7
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 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,27 +7,7 @@ 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: codecov/codecov-action@v3
uses: colcon/ci/.github/workflows/pytest.yaml@main
with:
codecov: true

0 comments on commit a795ba7

Please sign in to comment.