From a496525ddfc4495e560df0b2723da48aacbf88f0 Mon Sep 17 00:00:00 2001 From: Chuck Tang Date: Wed, 25 Sep 2024 18:09:10 -0700 Subject: [PATCH] commit change --- .github/workflows/coverage.yaml | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 724497b1..2629c453 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -10,23 +10,14 @@ jobs: timeout-minutes: 5 runs-on: ubuntu-latest steps: - - name: Checkout Repo - uses: actions/checkout@v3 - - name: Setup - run: | - set -ex - python -m pip install --upgrade 'pip<23' wheel - pip install coverage[toml]==6.5.0 - - name: Download artifacts - uses: actions/download-artifact@v3 - with: - path: ${{ inputs.download-path }} - - name: Generate coverage report - run: | - set -ex - - # Flatten the coverage files - ls ${{ inputs.download-path }} | while read x; do mv ${{ inputs.download-path }}/$x/.coverage .coverage.$x; done - - python -m coverage combine - python -m coverage report + - name: Checkout Repo + uses: actions/checkout@v3 + - name: Get composite run steps repository + uses: actions/checkout@v3 + with: + repository: mosaicml/ci-testing + ref: v0.2.2 + path: ./ci-testing + - uses: ./ci-testing/.github/actions/coverage + with: + download-path: ${{ inputs.download-path }} \ No newline at end of file