summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/PULL_REQUEST_TEMPLATE.md1
-rwxr-xr-x.github/workflows/install_and_test.sh6
-rw-r--r--.github/workflows/pypi-publish.yaml4
3 files changed, 8 insertions, 3 deletions
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
index 2bbc804..58062a1 100644
--- a/.github/PULL_REQUEST_TEMPLATE.md
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -6,6 +6,7 @@ _Please make sure to review and check all of these items:_
- [ ] Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
- [ ] Is the new or changed code fully tested?
- [ ] Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
+- [ ] Is there an example added to the examples folder (if applicable)?
_NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open._
diff --git a/.github/workflows/install_and_test.sh b/.github/workflows/install_and_test.sh
index 330102e..7a8cd67 100755
--- a/.github/workflows/install_and_test.sh
+++ b/.github/workflows/install_and_test.sh
@@ -38,4 +38,8 @@ cd ${TESTDIR}
# install, run tests
pip install ${PKG}
-pytest
+# Redis tests
+pytest -m 'not onlycluster'
+# RedisCluster tests
+CLUSTER_URL="redis://localhost:16379/0"
+pytest -m 'not onlynoncluster and not redismod' --redis-url=${CLUSTER_URL}
diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml
index b842c36..3cccb06 100644
--- a/.github/workflows/pypi-publish.yaml
+++ b/.github/workflows/pypi-publish.yaml
@@ -13,7 +13,7 @@ jobs:
- name: install python
uses: actions/setup-python@v2
with:
- python-version: 3.0
+ python-version: 3.9
- name: Install dev tools
run: |
pip install -r dev_requirements.txt
@@ -22,7 +22,7 @@ jobs:
- name: Build package
run: |
python setup.py build
- python setup.py dist bdist_wheel
+ python setup.py sdist bdist_wheel
- name: Publish to Pypi
uses: pypa/gh-action-pypi-publish@release/v1