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:
|
2022-10-25 03:34:09 +00:00
|
|
|
- '3.11'
|
2021-01-04 20:08:10 +00:00
|
|
|
name: Windows, SQLite, Python ${{ matrix.python-version }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-03-07 09:56:31 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-01-04 20:08:10 +00:00
|
|
|
- name: Set up Python
|
2022-06-24 05:38:13 +00:00
|
|
|
uses: actions/setup-python@v4
|
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
|
2022-03-07 09:56:31 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-01-06 17:11:33 +00:00
|
|
|
- name: Set up Node.js
|
2022-03-07 09:56:31 +00:00
|
|
|
uses: actions/setup-node@v3
|
2021-01-06 17:11:33 +00:00
|
|
|
with:
|
2022-05-21 12:53:37 +00:00
|
|
|
node-version: '14'
|
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
|