123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- name: Setuptools
- on:
- push:
- branches: [ develop ]
- pull_request:
- branches: [ develop ]
- workflow_dispatch:
- inputs:
- user-to-notify:
- description: "Github username to notify"
- required: false
- default: ""
- jobs:
- standard-packages:
- timeout-minutes: 15
- strategy:
- matrix:
- python-versions: [ '3.8', '3.9', '3.10' ]
- os: [ubuntu-18.04, macos-latest] #, windows-latest]
- runs-on: ${{ matrix.os }}
- steps:
- - uses: actions/checkout@v2
- - uses: actions/setup-python@v2
- with:
- python-version: ${{ matrix.python-versions }}
- - name: Install Taipy without dependencies
- run: |
- mkdir -p ~/.ssh
- echo "${{ secrets.SSH_KEY_TAIPY_CORE }}" > ~/.ssh/id_ed25519
- ssh-keyscan github.com >> ~/.ssh/known_hosts
- chmod 600 ~/.ssh/id_ed25519
- pip install .
- rm -r taipy
- python -c "import taipy as tp; tp.Scenario"
- python -c "import taipy as tp; tp.gui"
- python -c "import taipy.rest as rest"
- - name: Notify user if failed
- if: failure()
- run: |
- if [[ -n "${{ github.event.inputs.user-to-notify }}" ]]; then
- 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"
- fi
- shell: bash
|