From 992e4b8ab7da5433fa74edfa8d3048d811db8f03 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Mon, 12 Feb 2024 17:07:33 -0600 Subject: [PATCH] Switch to workflow_call for GitHub Actions CI --- .github/workflows/ci.yaml | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 37454a5..092bc62 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,4 @@ +--- name: Run tests on: @@ -6,31 +7,7 @@ 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: actions/upload-artifact@v2 - with: - name: coverage - path: ./**/coverage.xml - - uses: codecov/codecov-action@v3 + uses: colcon/ci/.github/workflows/pytest.yaml@main + with: + codecov: true