-
Notifications
You must be signed in to change notification settings - Fork 2.5k
43 lines (38 loc) · 1.07 KB
/
doctests.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
43
name: Documentation Tests
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
doctests:
runs-on: ubuntu-latest
services:
redis-stack:
image: redis/redis-stack-server:latest
options: >-
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'
- run: |
sudo apt update
sudo apt install -y redis-tools
- name: lint check
run: |
pip install -r dev_requirements.txt
pip install -r requirements.txt
pip install -r doctests/requirements.txt
isort -l 80 --profile black --check-only --diff doctests/*.py
black -l 80 --target-version py39 --check --diff doctests/*.py
- name: run tests
run: |
python setup.py build
python setup.py install
sh doctests/run_examples.sh