Skip to content

Commit 987bb2c

Browse files
Added dockerhub build-variants. Added by.hash (we have by.branch, by.tag, by.hash now) (#258)
* Added dockerhub build-variants. Added by.hash (we have by.branch, by.tag, by.hash now) * fixes per flake linter * Updated poetry lock * Running on tox on PR in gh * tox 5.0.0 and docker >= 7 * Fixed utils/tests/test_builder.py::test_commit_schema_to_stream_then_build * Fixed utils/tests/test_builder.py:76: AssertionError * Fixed poetry lock * Added dockerhub E2E triggering/tests * Running dockerhub tests by default on CI * Ensuring we have small CPU count requests for CI * Fixed prefetch image test * Include a way of triggering dockerhub run * Add airgap option to cli docker triggering
1 parent e32649c commit 987bb2c

File tree

134 files changed

+4545
-2320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+4545
-2320
lines changed

.github/workflows/tox-self-hosted.yml

-105
This file was deleted.

.github/workflows/tox.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Run Tests using tox
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
9+
jobs:
10+
pytest:
11+
strategy:
12+
matrix:
13+
python-version: [ '3.10', '3.11', '3.12' ]
14+
fail-fast: false
15+
env:
16+
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
17+
USING_COVERAGE: "3.10"
18+
USING_COVERAGE_OS: "ubuntu-latest"
19+
20+
runs-on: "ubuntu-latest"
21+
name: os ${{ matrix.os }} python ${{ matrix.python-version }} Linting, testing, and compliance
22+
steps:
23+
- uses: actions/checkout@master
24+
25+
- name: Set up Python ${{ matrix.python-version }}
26+
uses: actions/setup-python@v1
27+
with:
28+
python-version: ${{ matrix.python-version }}
29+
30+
- name: Install Poetry
31+
run: |
32+
curl -sSL https://install.python-poetry.org | python3 -
33+
34+
- name: Install Dev requirements
35+
run: |
36+
pip install -U setuptools wheel
37+
pip install -r dev_requirements.txt
38+
39+
- name: Run tox
40+
run: |
41+
tox
42+
43+
- name: Upload coverage to Codecov
44+
uses: codecov/codecov-action@v2
45+
if: contains(env.USING_COVERAGE, matrix.python-version)
46+
with:
47+
token: ${{secrets.CODECOV_TOKEN}}
48+
fail_ci_if_error: true

Readme.md

+6
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,12 @@ To run a specific test:
389389
$ tox -- utils/tests/test_runner.py
390390
```
391391

392+
To run a specific test with verbose logging:
393+
394+
```sh
395+
$ tox -- -vv --log-cli-level=INFO utils/tests/test_runner.py
396+
```
397+
392398
## License
393399

394400
redis-benchmarks-specification is distributed under the BSD3 license - see [LICENSE](LICENSE)

dev_requirements.txt

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
click==8.0.4
2-
black==22.3.0
3-
flake8==4.0.1
1+
click==8.1.7
2+
black==24.4.2
3+
flake8==7.1.0
44
flynt~=0.69.0
55
isort==5.10.1
66
mock==4.0.3
77
packaging>=20.4
8-
pytest==7.2.0
9-
pytest-timeout==2.0.1
10-
pytest-asyncio>=0.16.0
11-
tox==3.24.4
12-
tox-docker==4.0.0a2
13-
invoke==1.6.0
14-
pytest-cov>=3.0.0
8+
pytest==8.2.2
9+
pytest-timeout==2.3.1
10+
pytest-asyncio>=0.23.7
11+
tox>=4.16.0
12+
tox-docker>=5.0.0
13+
invoke==2.2.0
14+
pytest-cov>=5.0.0
1515
vulture>=2.3.0
1616
ujson>=4.2.0
17-
wheel>=0.30.0
17+
wheel>=0.43.0
18+
docker>=7.1.0

0 commit comments

Comments
 (0)