Skip to content

Commit

Permalink
install system packages as part of workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mattieruth committed Sep 19, 2024
1 parent 63544d9 commit 84689fc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 12 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ on:
- main
pull_request:
branches:
- "**"
- '**'
paths-ignore:
- "docs/**"
- 'docs/**'

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: "Build and Install"
name: 'Build and Install'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -26,6 +26,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install system packages
id: install_system_packages
run: |
sudo apt-get install -y portaudio19-dev
- name: Setup virtual environment
run: |
python -m venv .venv
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ on:
- main
pull_request:
branches:
- "**"
- '**'
paths-ignore:
- "docs/**"
- 'docs/**'

concurrency:
group: build-lint-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
autopep8:
name: "Formatting lints"
name: 'Formatting lints'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -26,6 +26,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install system packages
id: install_system_packages
run: |
sudo apt-get install -y portaudio19-dev
- name: Setup virtual environment
run: |
python -m venv .venv
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
inputs:
gitref:
type: string
description: "what git ref to build"
description: 'what git ref to build'
required: true

jobs:
build:
name: "Build and upload wheels"
name: 'Build and upload wheels'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -22,6 +22,10 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install system packages
id: install_system_packages
run: |
sudo apt-get install -y portaudio19-dev
- name: Setup virtual environment
run: |
python -m venv .venv
Expand All @@ -41,9 +45,9 @@ jobs:
path: ./dist

publish-to-pypi:
name: "Publish to PyPI"
name: 'Publish to PyPI'
runs-on: ubuntu-latest
needs: [ build ]
needs: [build]
environment:
name: pypi
url: https://pypi.org/p/pipecat-ai
Expand All @@ -62,9 +66,9 @@ jobs:
print-hash: true

publish-to-test-pypi:
name: "Publish to Test PyPI"
name: 'Publish to Test PyPI'
runs-on: ubuntu-latest
needs: [ build ]
needs: [build]
environment:
name: testpypi
url: https://pypi.org/p/pipecat-ai
Expand Down

0 comments on commit 84689fc

Please sign in to comment.