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