applications.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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: |
  34. sudo apt install -y desktop-file-utils
  35. pip install requests
  36. - name: Test scipy
  37. if: ${{ inputs.scipy }}
  38. run: |
  39. python -m python_appimage build app applications/scipy \
  40. --python-version=2.7 \
  41. --python-tag=cp27-cp27mu
  42. test -e scipy-x86_64.AppImage
  43. ./scipy-x86_64.AppImage -c 'import numpy, pandas, scipy'
  44. - name: Test tasmotizer
  45. if: ${{ inputs.tasmotizer }}
  46. run: |
  47. python -m python_appimage build app applications/tasmotizer \
  48. --linux-tag=manylinux1_x86_64 \
  49. --python-version=3.9
  50. test -e tasmotizer-x86_64.AppImage
  51. - name: Test xonsh
  52. if: ${{ inputs.xonsh }}
  53. run: |
  54. python -m python_appimage build app applications/xonsh
  55. test -e xonsh-x86_64.AppImage
  56. ./xonsh-x86_64.AppImage -c 'import xonsh'
  57. - name: Test ssh-mitm
  58. if: ${{ inputs.ssh_mitm && (matrix.version == '3.9') }}
  59. run: |
  60. python -m python_appimage build app applications/ssh-mitm
  61. test -e ssh-mitm-x86_64.AppImage
  62. ./ssh-mitm-x86_64.AppImage --help