Skip to content

Commit

Permalink
Run self hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-fazil committed Aug 21, 2024
1 parent 6734aa5 commit a64232b
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/build_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,28 @@ on:
push:

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.11"] # "3.9", "3.10",

build:
runs-on: self-hosted
container:
image: hellorobotinc/stretch-install-image
volumes:
- /dev:/dev
network: host

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Configure Git to trust the directory
run: git config --global --add safe.directory `pwd`
- name: Get LFS objects
run: git lfs pull
- name: Install dependencies and code
run: |
pip install --upgrade setuptools wheel
sudo apt update
sudo apt-get install portaudio19-dev python-pyaudio python3-pyaudio
python -m pip install -e body/
python
python -m pip install -e ./src[dev]
- name: Run tests
run: |
python -m pip install pytest
Expand Down

0 comments on commit a64232b

Please sign in to comment.