Skip to content

Commit

Permalink
Attempts to split compile CI into audio and non-audio
Browse files Browse the repository at this point in the history
  • Loading branch information
norman-codes committed Sep 11, 2024
1 parent 5a252df commit 6abe8a0
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@ name: ci

on: [push]
jobs:
compile:
compile-without-audio:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Install dependencies
run: poetry install
- name: Type check everything except audio utilities and legacy
run: poetry run mypy . --exclude 'src/hume/empathic_voice/chat/audio' --exclude 'src/hume/legacy/microphone'
compile-with-audio:
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
Expand Down Expand Up @@ -46,7 +62,7 @@ jobs:
run: fern test --command "poetry run pytest -rP . --ignore ./tests/custom/_legacy"

publish:
needs: [compile, test]
needs: [compile-without-audio, compile-with-audio, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
steps:
Expand Down

0 comments on commit 6abe8a0

Please sign in to comment.