2021-01-06 17:11:33 +00:00
|
|
|
name: Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2021-09-22 11:11:37 +00:00
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2021-02-26 05:15:52 +00:00
|
|
|
push:
|
|
|
|
branches:
|
2021-03-09 06:27:51 +00:00
|
|
|
- main
|
2021-09-22 11:11:37 +00:00
|
|
|
paths-ignore:
|
|
|
|
- 'docs/**'
|
2021-01-06 17:11:33 +00:00
|
|
|
|
2022-03-07 12:17:58 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-08-04 18:00:35 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-01-06 17:11:33 +00:00
|
|
|
jobs:
|
2021-01-04 20:08:10 +00:00
|
|
|
windows:
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version:
|
2024-10-08 06:10:06 +00:00
|
|
|
- '3.13'
|
2021-01-04 20:08:10 +00:00
|
|
|
name: Windows, SQLite, Python ${{ matrix.python-version }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-05 08:52:17 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-01-04 20:08:10 +00:00
|
|
|
- name: Set up Python
|
2024-01-26 12:41:52 +00:00
|
|
|
uses: actions/setup-python@v5
|
2021-01-04 20:08:10 +00:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
2022-02-04 19:11:13 +00:00
|
|
|
cache: 'pip'
|
|
|
|
cache-dependency-path: 'tests/requirements/py3.txt'
|
2022-03-18 07:55:32 +00:00
|
|
|
- name: Install and upgrade packaging tools
|
|
|
|
run: python -m pip install --upgrade pip setuptools wheel
|
|
|
|
- run: python -m pip install -r tests/requirements/py3.txt -e .
|
2021-01-04 20:08:10 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: python tests/runtests.py -v2
|
|
|
|
|
2021-01-06 17:11:33 +00:00
|
|
|
javascript-tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: JavaScript tests
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-05 08:52:17 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-01-06 17:11:33 +00:00
|
|
|
- name: Set up Node.js
|
2024-01-26 12:41:52 +00:00
|
|
|
uses: actions/setup-node@v4
|
2021-01-06 17:11:33 +00:00
|
|
|
with:
|
2023-10-03 08:25:31 +00:00
|
|
|
node-version: '20'
|
2022-03-07 09:56:31 +00:00
|
|
|
cache: 'npm'
|
|
|
|
cache-dependency-path: '**/package.json'
|
2021-01-06 17:11:33 +00:00
|
|
|
- run: npm install
|
|
|
|
- run: npm test
|