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.
 
 
 
 
 
 

54 lines
1.1 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@v2
  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@v2
  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.6, 3.7, 3.8]
  27. steps:
  28. - uses: actions/checkout@v2
  29. - uses: actions/setup-python@v1
  30. with:
  31. python-version: ${{ matrix.python-version }}
  32. - name: test cli
  33. run: |
  34. cd cli
  35. ./test
  36. test-backend:
  37. runs-on: ubuntu-latest
  38. steps:
  39. - uses: actions/checkout@v2
  40. - uses: actions/setup-python@v1
  41. with:
  42. python-version: "3.6"
  43. - name: test backend
  44. run: |
  45. cd containers/backend
  46. python -m pip install --upgrade pip
  47. python -m pip install -r requirements.txt
  48. python manage.py test