You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

67 lines
1.5 KiB

  1. name: test
  2. on: [push, pull_request]
  3. jobs:
  4. test-packages:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - name: test packages
  9. run: |
  10. yarn install
  11. yarn test
  12. test-mobile:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v1
  16. - name: test mobile
  17. run: |
  18. cd mobile
  19. yarn install
  20. yarn test
  21. test-cli:
  22. runs-on: ubuntu-latest
  23. strategy:
  24. max-parallel: 3
  25. matrix:
  26. python-version: [3.5, 3.6, 3.7]
  27. steps:
  28. - uses: actions/checkout@v1
  29. - uses: actions/setup-python@v1
  30. with:
  31. python-version: ${{ matrix.python-version }}
  32. - name: test cli
  33. run: |
  34. cd cli
  35. python -m pip install --upgrade pip
  36. python -m pip install -r requirements.txt
  37. python -m pip install -r test-requirements.txt
  38. export PYTHONPATH='.'
  39. python -m unittest discover
  40. test-backend:
  41. runs-on: ubuntu-latest
  42. steps:
  43. - uses: actions/checkout@v1
  44. - uses: actions/setup-python@v1
  45. with:
  46. python-version: "3.6"
  47. - name: test backend
  48. run: |
  49. cd containers/backend
  50. python -m pip install --upgrade pip
  51. python -m pip install -r requirements.txt
  52. python manage.py test
  53. test-containers:
  54. runs-on: ubuntu-latest
  55. steps:
  56. - uses: actions/checkout@v1
  57. - name: test containers
  58. run: |
  59. cd containers
  60. ./test