tests.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. name: Tests
  2. on:
  3. pull_request:
  4. paths-ignore:
  5. - 'docs/**'
  6. push:
  7. branches:
  8. - main
  9. paths-ignore:
  10. - 'docs/**'
  11. jobs:
  12. windows:
  13. runs-on: windows-latest
  14. strategy:
  15. matrix:
  16. python-version:
  17. - '3.10'
  18. name: Windows, SQLite, Python ${{ matrix.python-version }}
  19. steps:
  20. - name: Checkout
  21. uses: actions/checkout@v3
  22. - name: Set up Python
  23. uses: actions/setup-python@v3
  24. with:
  25. python-version: ${{ matrix.python-version }}
  26. cache: 'pip'
  27. cache-dependency-path: 'tests/requirements/py3.txt'
  28. - run: pip install -r tests/requirements/py3.txt -e .
  29. - name: Run tests
  30. run: python tests/runtests.py -v2
  31. javascript-tests:
  32. runs-on: ubuntu-latest
  33. name: JavaScript tests
  34. steps:
  35. - name: Checkout
  36. uses: actions/checkout@v3
  37. - name: Set up Node.js
  38. uses: actions/setup-node@v3
  39. with:
  40. node-version: '12'
  41. cache: 'npm'
  42. cache-dependency-path: '**/package.json'
  43. - run: npm install
  44. - run: npm test