setuptools.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: Setuptools
  2. on:
  3. push:
  4. branches: [ develop ]
  5. pull_request:
  6. branches: [ develop ]
  7. workflow_dispatch:
  8. inputs:
  9. user-to-notify:
  10. description: "Github username to notify"
  11. required: false
  12. default: ""
  13. jobs:
  14. standard-packages:
  15. timeout-minutes: 15
  16. strategy:
  17. matrix:
  18. python-versions: [ '3.8', '3.9', '3.10' ]
  19. os: [ubuntu-18.04, macos-latest] #, windows-latest]
  20. runs-on: ${{ matrix.os }}
  21. steps:
  22. - uses: actions/checkout@v2
  23. - uses: actions/setup-python@v2
  24. with:
  25. python-version: ${{ matrix.python-versions }}
  26. - name: Install Taipy without dependencies
  27. run: |
  28. mkdir -p ~/.ssh
  29. echo "${{ secrets.SSH_KEY_TAIPY_CORE }}" > ~/.ssh/id_ed25519
  30. ssh-keyscan github.com >> ~/.ssh/known_hosts
  31. chmod 600 ~/.ssh/id_ed25519
  32. pip install .
  33. rm -r taipy
  34. python -c "import taipy as tp; tp.Scenario"
  35. python -c "import taipy as tp; tp.gui"
  36. python -c "import taipy.rest as rest"
  37. - name: Notify user if failed
  38. if: failure()
  39. run: |
  40. if [[ -n "${{ github.event.inputs.user-to-notify }}" ]]; then
  41. curl "${{ secrets.notify_endpoint }}" -d '{"username": "${{ github.event.inputs.user-to-notify }}", "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" }' -H "Content-Type: application/json"
  42. fi
  43. shell: bash