applications.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: Applications
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. scipy:
  6. required: true
  7. default: true
  8. type: boolean
  9. tasmotizer:
  10. required: true
  11. default: true
  12. type: boolean
  13. xonsh:
  14. required: true
  15. default: true
  16. type: boolean
  17. ssh-mitm:
  18. required: true
  19. default: true
  20. type: boolean
  21. jobs:
  22. Test:
  23. runs-on: ubuntu-20.04
  24. strategy:
  25. matrix:
  26. version: ['2.7', '3.7', '3.9']
  27. steps:
  28. - uses: actions/checkout@v4
  29. - uses: actions/setup-python@v4
  30. with:
  31. python-version: ${{ matrix.version }}
  32. - name: Test scipy
  33. if: ${{ inputs.scipy }}
  34. run: |
  35. python -m python_appimage build app applications/scipy \
  36. --python-version=2.7 \
  37. --python-tag=cp27-cp27mu
  38. test -e scipy-x86_64.AppImage
  39. ./scipy-x86_64.AppImage -c 'import numpy, pandas, scipy'
  40. - name: Test tasmotizer
  41. if: ${{ inputs.tasmotizer }}
  42. run: |
  43. python -m python_appimage build app applications/tasmotizer \
  44. --linux-tag=manylinux1_x86_64 \
  45. --python-version=3.9
  46. test -e tasmotizer-x86_64.AppImage
  47. - name: Test xonsh
  48. if: ${{ inputs.xonsh }}
  49. run: |
  50. python -m python_appimage build app applications/xonsh
  51. test -e xonsh-x86_64.AppImage
  52. ./xonsh-x86_64.AppImage -c 'import xonsh'
  53. - name: Test ssh-mitm
  54. if: ${{ inputs.ssh_mitm && (matrix.version == '3.9') }}
  55. run: |
  56. python -m python_appimage build app applications/ssh-mitm
  57. test -e ssh-mitm-x86_64.AppImage
  58. ./ssh-mitm-x86_64.AppImage --help