mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
* Test against Python 3.9 * Programming Language :: Python :: 3.9 classifier * Python versions badge
35 lines
862 B
YAML
35 lines
862 B
YAML
name: Test
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.6, 3.7, 3.8, 3.9]
|
|
numpy: [0, 1]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- uses: actions/cache@v2
|
|
name: Configure pip caching
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -e '.[test]'
|
|
- name: Optionally install numpy
|
|
if: matrix.numpy == 1
|
|
run: pip install numpy
|
|
- name: Run tests
|
|
run: |
|
|
pytest
|
|
- name: Check formatting
|
|
run: black . --check
|