Skip to content

Commit cddeb15

Browse files
[add] Added further documentation. Splitted actions in test/publish. Bump version (#19)
1 parent c56b036 commit cddeb15

File tree

4 files changed

+55
-13
lines changed

4 files changed

+55
-13
lines changed

.github/workflows/poetry-pytest.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
release:
8-
types: [created, edited, published, prereleased]
97

108
jobs:
119
pytest:
@@ -46,9 +44,4 @@ jobs:
4644
run: poetry run pytest --cov redisbench_admin
4745

4846
- name: Upload coverage
49-
run: poetry run codecov -t ${{ secrets.CODECOV_TOKEN }}
50-
51-
- name: Publish to PyPI
52-
if: github.event_name == 'release'
53-
run: |
54-
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} --build
47+
run: poetry run codecov -t ${{ secrets.CODECOV_TOKEN }}

.github/workflows/publish-pypi.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish Pypi
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
pytest:
8+
name: pytest
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Set up Python 3.7
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.7
16+
17+
- name: Install Poetry
18+
uses: dschep/install-poetry-action@v1.3
19+
20+
- name: Cache Poetry virtualenv
21+
uses: actions/cache@v1
22+
id: cache
23+
with:
24+
path: ~/.virtualenvs
25+
key: poetry-${{ hashFiles('**/poetry.lock') }}
26+
restore-keys: |
27+
poetry-${{ hashFiles('**/poetry.lock') }}
28+
29+
- name: Set Poetry config
30+
run: |
31+
poetry config virtualenvs.in-project false
32+
poetry config virtualenvs.path ~/.virtualenvs
33+
34+
- name: Install Dependencies
35+
run: poetry install
36+
if: steps.cache.outputs.cache-hit != 'true'
37+
38+
- name: Publish to PyPI
39+
if: github.event_name == 'release'
40+
run: |
41+
poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }} --build

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@
33
![Actions](https://badge.fury.io/py/redisbench-admin.svg)
44

55
# redisbench-admin
6-
Redis benchmark run helper. An automation wrapper around:
6+
7+
Redis benchmark run helper can help you with the following tasks:
8+
9+
- Setup and teardown of an Redis and Redis Modules DBs for benchmarking
10+
- Management of benchmark data and specifications across different setups
11+
- Running benchmarks and recording results
12+
- Comparing performance results
13+
- Exporting performance results in several formats (CSV, RedisTimeSeries, JSON)
14+
- [SOON] Finding performance problems by attaching telemetry probes
15+
16+
Current supported benchmark tools:
717
- [redisgraph-database-benchmark](https://github.com/RedisGraph/graph-database-benchmark/tree/master/benchmark/redisgraph)
818
- [ftsb_redisearch](https://github.com/RediSearch/ftsb)
919

@@ -17,9 +27,7 @@ Installation is done using pip, the package installer for Python, in the followi
1727
python3 -m pip install redisbench-admin
1828
```
1929

20-
## Overview
21-
22-
TBD
30+
## Development
2331

2432
### Running tests
2533

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.1.22"
3+
version = "0.1.23"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <filipecosta.90@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)