Skip to content

Added dockerhub build-variants. Added by.hash (we have by.branch, by.tag, by.hash now) #258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 0 additions & 105 deletions .github/workflows/tox-self-hosted.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Run Tests using tox
on:
pull_request:
push:
branches:
- master
- main

jobs:
pytest:
strategy:
matrix:
python-version: [ '3.10', '3.11', '3.12' ]
fail-fast: false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
USING_COVERAGE: "3.10"
USING_COVERAGE_OS: "ubuntu-latest"

runs-on: "ubuntu-latest"
name: os ${{ matrix.os }} python ${{ matrix.python-version }} Linting, testing, and compliance
steps:
- uses: actions/checkout@master

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -

- name: Install Dev requirements
run: |
pip install -U setuptools wheel
pip install -r dev_requirements.txt

- name: Run tox
run: |
tox

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: contains(env.USING_COVERAGE, matrix.python-version)
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,12 @@ To run a specific test:
$ tox -- utils/tests/test_runner.py
```

To run a specific test with verbose logging:

```sh
$ tox -- -vv --log-cli-level=INFO utils/tests/test_runner.py
```

## License

redis-benchmarks-specification is distributed under the BSD3 license - see [LICENSE](LICENSE)
23 changes: 12 additions & 11 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
click==8.0.4
black==22.3.0
flake8==4.0.1
click==8.1.7
black==24.4.2
flake8==7.1.0
flynt~=0.69.0
isort==5.10.1
mock==4.0.3
packaging>=20.4
pytest==7.2.0
pytest-timeout==2.0.1
pytest-asyncio>=0.16.0
tox==3.24.4
tox-docker==4.0.0a2
invoke==1.6.0
pytest-cov>=3.0.0
pytest==8.2.2
pytest-timeout==2.3.1
pytest-asyncio>=0.23.7
tox>=4.16.0
tox-docker>=5.0.0
invoke==2.2.0
pytest-cov>=5.0.0
vulture>=2.3.0
ujson>=4.2.0
wheel>=0.30.0
wheel>=0.43.0
docker>=7.1.0
Loading
Loading