Skip to content

Commit

Permalink
Redis.io website examples (#2708)
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Malinovskiy <igor.malinovskiy@redis.com>
Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
  • Loading branch information
3 people committed Apr 20, 2023
1 parent ff67087 commit cf07c53
Show file tree
Hide file tree
Showing 22 changed files with 501 additions and 408 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/doctests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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
isort --check-only --diff doctests/*.py
black --target-version py39 --check --diff doctests/*.py
- name: run tests
run: |
python setup.py build
python setup.py install
sh doctests/run_examples.sh
36 changes: 0 additions & 36 deletions docs/examples/bikes_1/bike_setup.py

This file was deleted.

4 changes: 0 additions & 4 deletions docs/examples/bikes_1/example.json

This file was deleted.

41 changes: 0 additions & 41 deletions docs/examples/bikes_2/bike_index.py

This file was deleted.

4 changes: 0 additions & 4 deletions docs/examples/bikes_2/example.json

This file was deleted.

46 changes: 0 additions & 46 deletions docs/examples/bikes_3/bike_search.py

This file was deleted.

4 changes: 0 additions & 4 deletions docs/examples/bikes_3/example.json

This file was deleted.

Loading

0 comments on commit cf07c53

Please sign in to comment.