|
@@ -3,6 +3,31 @@ name: Run Tests
|
|
|
on: [push]
|
|
|
|
|
|
jobs:
|
|
|
+ rpi4:
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ name: Run tests on RaspberryPi 4 (32-bit)
|
|
|
+ steps:
|
|
|
+ - name: Checkout code
|
|
|
+ uses: actions/checkout@v2
|
|
|
+ - name: Set up QEMU
|
|
|
+ uses: docker/setup-qemu-action@v1
|
|
|
+ - name: Set up Docker Buildx
|
|
|
+ uses: docker/setup-buildx-action@v1
|
|
|
+ - name: Build Docker image
|
|
|
+ uses: docker/build-push-action@v2
|
|
|
+ with:
|
|
|
+ context: .
|
|
|
+ file: ./Dockerfile.arm32v7
|
|
|
+ platforms: linux/arm/v7
|
|
|
+ load: true
|
|
|
+ tags: python-arm32v7:test
|
|
|
+ - name: Test-start NiceGUI
|
|
|
+ uses: addnab/docker-run-action@v3
|
|
|
+ with:
|
|
|
+ image: python-arm32v7:test
|
|
|
+ options: -v ${{ github.workspace }}:/app
|
|
|
+ run: python /app/main.py
|
|
|
+
|
|
|
test:
|
|
|
strategy:
|
|
|
matrix:
|
|
@@ -42,31 +67,6 @@ jobs:
|
|
|
name: pytest-screenshots
|
|
|
path: tests/screenshots
|
|
|
|
|
|
- rpi4:
|
|
|
- runs-on: ubuntu-latest
|
|
|
- name: Run tests on ARMv7 (32-bit); eg. RaspberryPi 4
|
|
|
- steps:
|
|
|
- - name: Checkout code
|
|
|
- uses: actions/checkout@v2
|
|
|
- - name: Set up Python
|
|
|
- uses: actions/setup-python@v2
|
|
|
- with:
|
|
|
- python-version: 3.11
|
|
|
- - name: set up Poetry
|
|
|
- uses: abatilo/actions-poetry@v2.0.0
|
|
|
- with:
|
|
|
- poetry-version: "1.3.1"
|
|
|
- - name: install dependencies
|
|
|
- run: |
|
|
|
- poetry config virtualenvs.create false
|
|
|
- poetry install
|
|
|
- # install packages to run the examples
|
|
|
- pip install opencv-python opencv-contrib-python-headless httpx replicate
|
|
|
- # try fix issue with importlib_resources
|
|
|
- pip install importlib-resources
|
|
|
- - name: test startup
|
|
|
- run: ./test_startup.sh
|
|
|
-
|
|
|
slack:
|
|
|
needs:
|
|
|
- test
|