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