commitflow-py3.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: Python 3 CI
  2. on:
  3. push:
  4. branches:
  5. - master
  6. pull_request:
  7. branches:
  8. - master
  9. jobs:
  10. build:
  11. runs-on: ubuntu:18.04
  12. strategy:
  13. matrix:
  14. python-version: [3.8]
  15. steps:
  16. - name: Checkout
  17. uses: actions/checkout@v2
  18. - name: Set up Python ${{ matrix.python-version }}
  19. uses: actions/setup-python@v2
  20. with:
  21. python-version: ${{ matrix.python-version }}
  22. - name: Cache pip
  23. uses: actions/cache@v2
  24. with:
  25. # This path is specific to Ubuntu
  26. path: ~/.cache/pip
  27. key: ${{ runner.os }}-pip-${{ hashFiles('desktop/core/requirements.txt') }}
  28. restore-keys: |
  29. ${{ runner.os }}-pip-
  30. ${{ runner.os }}-
  31. - name: compile
  32. run: |
  33. sudo apt-get update
  34. sudo apt-get install -y gcc g++ build-essential python3.8-dev python3.8-venv python3.8-distutils asciidoc rsync curl sudo libkrb5-dev libldap2-dev libsasl2-dev libxml2-dev libxslt-dev libsasl2-modules-gssapi-mit libsnappy-dev libffi-dev # This should not be needed as some point
  35. sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - && sudo apt-get install -y nodejs
  36. sudo curl -sL https://bootstrap.pypa.io/get-pip.py | sudo python3.8
  37. sudo apt-get install -y python3-setuptools
  38. sudo apt-get install -y libncursesw5-dev libgdbm-dev libc6-dev libssl-dev openssl
  39. export PYTHON_VER=python3.8
  40. export ROOT=$PWD
  41. make apps
  42. - name: run tests
  43. run: |
  44. PYTHONWARNINGS=always ./build/env/bin/hue test unit --with-xunit --with-cover