From 61c15e12c13b1938167cc0558e9717f87807a9ed Mon Sep 17 00:00:00 2001 From: Ajay Raj Date: Thu, 27 Jun 2024 11:06:11 -0700 Subject: [PATCH] hopefully fix coverage step --- .github/workflows/test.yml | 44 ++++++++++++-------------------------- 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a676fe524c..c39905ad21 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,16 +10,6 @@ env: poetry-version: "1.8.3" jobs: - setup: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Install ffmpeg - run: | - sudo apt-get update - sudo apt-get install -y ffmpeg - lint: strategy: fail-fast: false @@ -29,9 +19,15 @@ jobs: - "3.11" runs-on: ubuntu-latest - needs: setup steps: + - uses: actions/checkout@v2 + + - name: Install ffmpeg + run: | + sudo apt-get update + sudo apt-get install -y ffmpeg + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: @@ -43,18 +39,15 @@ jobs: poetry-version: ${{ env.poetry-version }} - name: Install dependencies - working-directory: ./vocode-core run: poetry install -E all - name: Run mypy - working-directory: ./vocode-core run: | - python -m poetry run mypy -p vocode - python -m poetry run mypy -p quickstarts - python -m poetry run mypy -p playground + poetry run mypy -p vocode + poetry run mypy -p quickstarts + poetry run mypy -p playground - name: Run black - working-directory: ./vocode-core if: success() || failure() run: poetry run black --check . @@ -63,7 +56,7 @@ jobs: if: success() || failure() run: poetry run isort --check . - test: + pytest: strategy: fail-fast: false matrix: @@ -72,7 +65,6 @@ jobs: - "3.11" runs-on: ubuntu-latest - # needs: setup steps: - uses: actions/checkout@v2 @@ -103,18 +95,10 @@ jobs: uses: actions/upload-artifact@v4 with: name: coverage-${{ github.sha }} - path: coverage.xml - - coverage: - if: github.event_name == 'pull_request' - needs: test - runs-on: ubuntu-latest - steps: - - uses: actions/download-artifact@v4 - with: - name: coverage-${{ github.sha }} + path: ./coverage.xml - - name: Get Coverage Report + - name: Get coverage report + if: github.event_name == 'pull_request' uses: orgoro/coverage@v3.1 with: coverageFile: coverage.xml