Kaynağa Gözat

not using dedicated dockerfile

Rodja Trappe 2 yıl önce
ebeveyn
işleme
4b5d99f2c1
1 değiştirilmiş dosya ile 6 ekleme ve 11 silme
  1. 6 11
      .github/workflows/test.yml

+ 6 - 11
.github/workflows/test.yml

@@ -13,20 +13,15 @@ jobs:
         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
+      - name: Test-start main.py
         uses: addnab/docker-run-action@v3
         with:
-          image: python-arm32v7:test
+          image: arm32v7/python:3.9-slim-buster
           options: -v ${{ github.workspace }}:/app
-          run: python /app/main.py
+          run: |
+            cd /app && \
+            python -m pip install . && \
+            python main.py
 
   test:
     strategy: