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.
 
 
 
 
 
 

68 lines
1.4 KiB

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