-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into ck_py312
- Loading branch information
Showing
117 changed files
with
8,258 additions
and
1,806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ exclude = | |
ignore = | ||
E126 | ||
E203 | ||
E701 | ||
E704 | ||
F405 | ||
N801 | ||
N802 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,8 @@ bysource | |
charset | ||
del | ||
dev | ||
docstring | ||
docstrings | ||
eg | ||
exc | ||
firsttimersonly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,105 +17,111 @@ on: | |
- cron: '0 1 * * *' # nightly build | ||
|
||
concurrency: | ||
group: ${{ github.event.pull_request.number || github.ref }} | ||
group: ${{ github.event.pull_request.number || github.ref }}-integration | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
|
||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
REDIS_IMAGE: redis/redis-stack-server:7.4.0-rc1 | ||
REDIS_STACK_IMAGE: redis/redis-stack-server:7.4.0-rc1 | ||
|
||
jobs: | ||
dependency-audit: | ||
name: Dependency audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pypa/[email protected] | ||
with: | ||
inputs: requirements.txt dev_requirements.txt | ||
ignore-vulns: | | ||
GHSA-w596-4wvx-j9j6 # subversion related git pull, dependency for pytest. There is no impact here. | ||
dependency-audit: | ||
name: Dependency audit | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pypa/[email protected] | ||
with: | ||
inputs: requirements.txt dev_requirements.txt | ||
ignore-vulns: | | ||
GHSA-w596-4wvx-j9j6 # subversion related git pull, dependency for pytest. There is no impact here. | ||
lint: | ||
name: Code linters | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' | ||
- name: run code linters | ||
run: | | ||
pip install -r dev_requirements.txt | ||
invoke linters | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
strategy: | ||
max-parallel: 15 | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9'] | ||
test-type: ['standalone', 'cluster'] | ||
connection-type: ['hiredis', 'plain'] | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
name: Python ${{ matrix.python-version }} ${{matrix.test-type}}-${{matrix.connection-type}} tests | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
- name: run tests | ||
run: | | ||
pip install -U setuptools wheel | ||
pip install -r requirements.txt | ||
pip install -r dev_requirements.txt | ||
if [ "${{matrix.connection-type}}" == "hiredis" ]; then | ||
pip install hiredis | ||
fi | ||
invoke devenv | ||
sleep 10 # time to settle | ||
invoke ${{matrix.test-type}}-tests | ||
- uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: pytest-results-${{matrix.test-type}}-${{matrix.connection-type}}-${{matrix.python-version}} | ||
path: '${{matrix.test-type}}*results.xml' | ||
|
||
- name: Upload codecov coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
fail_ci_if_error: false | ||
|
||
- name: View Test Results | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
continue-on-error: true | ||
with: | ||
name: Test Results ${{matrix.python-version}} ${{matrix.test-type}}-${{matrix.connection-type}} | ||
path: '*.xml' | ||
reporter: java-junit | ||
list-suites: all | ||
list-tests: all | ||
max-annotations: 10 | ||
fail-on-error: 'false' | ||
|
||
resp3_tests: | ||
lint: | ||
name: Code linters | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' | ||
- name: run code linters | ||
run: | | ||
pip install -r dev_requirements.txt | ||
invoke linters | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
strategy: | ||
max-parallel: 15 | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.8', 'pypy-3.9'] | ||
test-type: ['standalone', 'cluster'] | ||
connection-type: ['hiredis', 'plain'] | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
name: Python ${{ matrix.python-version }} ${{matrix.test-type}}-${{matrix.connection-type}} tests | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
- name: run tests | ||
run: | | ||
pip install -U setuptools wheel | ||
pip install -r requirements.txt | ||
pip install -r dev_requirements.txt | ||
if [ "${{matrix.connection-type}}" == "hiredis" ]; then | ||
pip install hiredis | ||
fi | ||
invoke devenv | ||
sleep 10 # time to settle | ||
invoke ${{matrix.test-type}}-tests | ||
- uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: pytest-results-${{matrix.test-type}}-${{matrix.connection-type}}-${{matrix.python-version}} | ||
path: '${{matrix.test-type}}*results.xml' | ||
|
||
- name: Upload codecov coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: false | ||
|
||
- name: View Test Results | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
continue-on-error: true | ||
with: | ||
name: Test Results ${{matrix.python-version}} ${{matrix.test-type}}-${{matrix.connection-type}} | ||
path: '*.xml' | ||
reporter: java-junit | ||
list-suites: all | ||
list-tests: all | ||
max-annotations: 10 | ||
fail-on-error: 'false' | ||
|
||
resp3_tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.8', '3.12'] | ||
test-type: ['standalone', 'cluster'] | ||
connection-type: ['hiredis', 'plain'] | ||
protocol: ['3'] | ||
exclude: | ||
- test-type: 'cluster' | ||
connection-type: 'hiredis' | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
name: RESP3 [${{ matrix.python-version }} ${{matrix.test-type}}-${{matrix.connection-type}}] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -132,11 +138,35 @@ jobs: | |
pip install hiredis | ||
fi | ||
invoke devenv | ||
sleep 5 # time to settle | ||
invoke ${{matrix.test-type}}-tests | ||
invoke ${{matrix.test-type}}-tests --uvloop | ||
sleep 10 # time to settle | ||
invoke ${{matrix.test-type}}-tests --protocol=3 | ||
invoke ${{matrix.test-type}}-tests --uvloop --protocol=3 | ||
- uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: pytest-results-${{matrix.test-type}}-${{matrix.connection-type}}-${{matrix.python-version}}-resp3 | ||
path: '${{matrix.test-type}}*results.xml' | ||
|
||
- name: Upload codecov coverage | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: false | ||
|
||
- name: View Test Results | ||
uses: dorny/test-reporter@v1 | ||
if: success() || failure() | ||
continue-on-error: true | ||
with: | ||
name: Test Results ${{matrix.python-version}} ${{matrix.test-type}}-${{matrix.connection-type}}-resp3 | ||
path: '*.xml' | ||
reporter: java-junit | ||
list-suites: all | ||
list-tests: all | ||
max-annotations: 10 | ||
fail-on-error: 'false' | ||
|
||
build_and_test_package: | ||
build_and_test_package: | ||
name: Validate building and installing the package | ||
runs-on: ubuntu-latest | ||
needs: [run-tests] | ||
|
@@ -153,7 +183,7 @@ jobs: | |
run: | | ||
bash .github/workflows/install_and_test.sh ${{ matrix.extension }} | ||
install_package_from_commit: | ||
install_package_from_commit: | ||
name: Install package from commit hash | ||
runs-on: ubuntu-latest | ||
strategy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.