ci.yml 1002 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: ci
  2. on: [pull_request, push]
  3. jobs:
  4. test:
  5. name: Lint test
  6. runs-on: ubuntu-18.04
  7. steps:
  8. - uses: actions/checkout@master
  9. - name: Setup Python
  10. uses: actions/setup-python@v2.2.2
  11. with:
  12. python-version: 3.7
  13. - name: Install dependencies
  14. run: |
  15. python -m pip install --upgrade pip
  16. - name: Lint with flake8
  17. run: |
  18. pip install flake8
  19. flake8 . --max-line-length=130
  20. buildx:
  21. runs-on: ubuntu-18.04
  22. needs: test
  23. steps:
  24. - name: Checkout
  25. uses: actions/checkout@v2
  26. - name: Set up QEMU
  27. uses: docker/setup-qemu-action@v1
  28. - name: Set up Docker Buildx
  29. id: buildx
  30. uses: docker/setup-buildx-action@v1
  31. - name: Available platforms
  32. run: echo ${{ steps.buildx.outputs.platforms }}
  33. - name: Run Buildx
  34. run: |
  35. docker buildx build \
  36. --platform linux/arm/v7,linux/arm64 .