Skip to content

Commit

Permalink
hopefully fix coverage step
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 committed Jun 27, 2024
1 parent 3a39dc2 commit 61c15e1
Showing 1 changed file with 14 additions and 30 deletions.
44 changes: 14 additions & 30 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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 .

Expand All @@ -63,7 +56,7 @@ jobs:
if: success() || failure()
run: poetry run isort --check .

test:
pytest:
strategy:
fail-fast: false
matrix:
Expand All @@ -72,7 +65,6 @@ jobs:
- "3.11"

runs-on: ubuntu-latest
# needs: setup

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -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/[email protected]
with:
coverageFile: coverage.xml
Expand Down

0 comments on commit 61c15e1

Please sign in to comment.