diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..298d498 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +# This workflows will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Publish to pypi + +on: + release: + types: [created] + +jobs: + build-n-publish: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Node + uses: actions/setup-node@v1 + with: + node-version: "10" + - name: Install npm Dependencies + run: | + cd frontend + npm install + npm run build + cd .. + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: "3.6" + - name: Install python dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist + twine upload dist/* diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml new file mode 100644 index 0000000..806717c --- /dev/null +++ b/.github/workflows/unittest.yml @@ -0,0 +1,22 @@ +name: Unit Test + +on: [push, pull_request] + +jobs: + unittest: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: "3.7" + - name: Install python dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Unit Test + run: | + cd tests + python -m pytest . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7762708..0000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -jobs: - include: - - stage: unit test - language: python - catch: pip - python: - - "3.6" - # command to install dependencies - install: - - pip install -r requirements.txt - - pip install . - # command to run tests - script: pytest - - - stage: release to pypi - if: type = push AND tag IS present - language: python - catch: - - pip - - npm - python: - - "3.6" - node_js: - - "10" - install: - - cd frontend - - npm install - - npm run build - - cd .. - script: - - echo "No script for pypi release" - deploy: - provider: pypi - skip_existing: true - skip-cleanup: true - user: yumiguan - password: - secure: "OOHysTCqFWBkK9i32G60FqhvqMmKgyUzSM9FIdX7j5NESnC4t2BxDZg13e2MOpV0iAUdq0zRSHuxBY/KbiLnpVbI2RWPEOD6v5efQNkNmLKoElzi4PhTnG2CxJGqwg9I0DH2qWgrSPDae5ikQpRvhqsD+G9yYDW1ge4mgGk0ui+xNAETjDswkmFOShH18mvwqdf543aoyVtmjJVMtWPoMTgqBuQL/JhCeg/xojfza0vz8sF4a1uB34kNS9femjTMXgeuPeFqX9LzHcsM3kl5t+SRi6jH86pCnqt1yyXExX0K/izpnQh9qa1Oze+NlHrVqgODYjjuSvfbtVR9hJuw+C5d0WHXfBk9BALs8hG8C51+mqQ3EBfjAUfCjBGr9yXkraaaGo/BiFrmZpKVBzG3lAkHb8/uRfg9tR87F7dxQ/uqr3qsRCtfzvk2Msc5fNczJJV0+JswdgsgJeczXU7+p/6rGIQ3TVcLKjammfLL7pPqJeP0TPNZ7SL+VDDmvusNJeYGvd4mfx1m1MpW1onhon3HsDwhd14dApIuS+vZAw0Uf9CtDZ0QMHE76+YAlnZpwA93c65+Td1gMQlL69w0wYQl76X36sLxlAmuOAzxPawscN2ampYHx6oqSkHtqkIiDz6Dr+/hUJhGRmcGbxFMGQVroP4KmJUfATITqQ3KYkc=" - on: - tags: true diff --git a/lyrebird_ios/bin/1.3.0/ideviceinstaller b/lyrebird_ios/bin/1.3.0/ideviceinstaller old mode 100644 new mode 100755