2
0

tests.yml 1.3 KB

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