tests.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. concurrency:
  12. group: ${{ github.workflow }}-${{ github.ref }}
  13. cancel-in-progress: true
  14. jobs:
  15. windows:
  16. runs-on: windows-latest
  17. strategy:
  18. matrix:
  19. python-version:
  20. - '3.10'
  21. name: Windows, SQLite, Python ${{ matrix.python-version }}
  22. steps:
  23. - name: Checkout
  24. uses: actions/checkout@v3
  25. - name: Set up Python
  26. uses: actions/setup-python@v3
  27. with:
  28. python-version: ${{ matrix.python-version }}
  29. cache: 'pip'
  30. cache-dependency-path: 'tests/requirements/py3.txt'
  31. - name: Install and upgrade packaging tools
  32. run: python -m pip install --upgrade pip setuptools wheel
  33. - run: python -m pip install -r tests/requirements/py3.txt -e .
  34. - name: Run tests
  35. run: python tests/runtests.py -v2
  36. javascript-tests:
  37. runs-on: ubuntu-latest
  38. name: JavaScript tests
  39. steps:
  40. - name: Checkout
  41. uses: actions/checkout@v3
  42. - name: Set up Node.js
  43. uses: actions/setup-node@v3
  44. with:
  45. node-version: '14'
  46. cache: 'npm'
  47. cache-dependency-path: '**/package.json'
  48. - run: npm install
  49. - run: npm test