applications.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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-latest
  24. strategy:
  25. matrix:
  26. version: ['3.9']
  27. steps:
  28. - uses: actions/checkout@v4
  29. - uses: actions/setup-python@v5
  30. with:
  31. python-version: ${{ matrix.version }}
  32. - name: Install Dependencies
  33. run: pip install requests
  34. - name: Test scipy
  35. if: ${{ inputs.scipy }}
  36. run: |
  37. python -m python_appimage build app applications/scipy \
  38. --python-version=2.7 \
  39. --python-tag=cp27-cp27mu
  40. test -e scipy-x86_64.AppImage
  41. ./scipy-x86_64.AppImage -c 'import numpy, pandas, scipy'
  42. - name: Test tasmotizer
  43. if: ${{ inputs.tasmotizer }}
  44. run: |
  45. python -m python_appimage build app applications/tasmotizer \
  46. --linux-tag=manylinux1_x86_64 \
  47. --python-version=3.9
  48. test -e tasmotizer-x86_64.AppImage
  49. - name: Test xonsh
  50. if: ${{ inputs.xonsh }}
  51. run: |
  52. python -m python_appimage build app applications/xonsh
  53. test -e xonsh-x86_64.AppImage
  54. ./xonsh-x86_64.AppImage -c 'import xonsh'
  55. - name: Test ssh-mitm
  56. if: ${{ inputs.ssh-mitm }}
  57. run: |
  58. python -m python_appimage build app applications/ssh-mitm \
  59. --python-version=3.11
  60. test -e ssh-mitm-x86_64.AppImage
  61. ./ssh-mitm-x86_64.AppImage --help