Skip to content

Commit 0249cc1

Browse files
authored
Merge pull request #33 from NET-BYU/self_hosted_runner
Add self hosted runner
2 parents 9bd144a + 4dcfdac commit 0249cc1

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/black.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Black
1+
name: Check formatting
22

33
on: [push]
44

.github/workflows/raspberry_pi.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test on Raspberry Pi
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: self-hosted
8+
steps:
9+
- uses: actions/checkout@v3
10+
11+
- name: Install system dependencies
12+
run: |
13+
sudo apt-get install libatlas-base-dev python3-pip python3-venv
14+
15+
- name: Set up environment
16+
run: |
17+
rm -rf /tmp/test
18+
mkdir /tmp/test
19+
python -m venv /tmp/test/.venv
20+
21+
- name: Install project dependencies
22+
run: |
23+
/tmp/test/.venv/bin/python -m pip install -r requirements.txt
24+
25+
- name: Run all demos to make sure they load
26+
run: |
27+
/tmp/test/.venv/bin/python main.py test
28+
29+
- name: Clean up code
30+
if: always()
31+
run: |
32+
rm -rf /tmp/test

0 commit comments

Comments
 (0)