-
Notifications
You must be signed in to change notification settings - Fork 131
42 lines (33 loc) · 980 Bytes
/
python-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- python-version: '3.7'
- python-version: '3.8'
- python-version: '3.9'
- python-version: '3.10'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install -U coverage flake8 pip pytest pytest-coverage pytest-benchmark
- name: Flake8
run: flake8 sqlitedict.py tests
- name: Install sqlitedict
run: python setup.py install
- name: Prepare tests subdirectory
run: |
rm -f tests/db
mkdir -p tests/db
- name: Run tests
run: pytest tests --cov=sqlitedict
- name: Run benchmarks
run: pytest benchmarks
- name: Run doctests
run: python -m doctest README.rst