Skip to content

Commit 0724b0a

Browse files
committed
3.7/3.9 and ubuntu-20.04 testing in pielines
also removed 2.x series python
1 parent 9d2ff06 commit 0724b0a

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
timeout-minutes: 10
1414
strategy:
1515
matrix:
16-
platform: [ubuntu-18.04, ubuntu-16.04]
17-
python: ['2.7', '3.6', '3.8' ]
16+
platform: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04]
17+
python: ['3.6', '3.7', '3.8' '3.9']
1818

1919
steps:
2020
- uses: actions/checkout@v2
@@ -44,9 +44,9 @@ jobs:
4444
4545
- name: Install Python dependencies
4646
run: |
47-
sudo apt-get install -y python-setuptools
48-
sudo apt-get install -y python3-setuptools
49-
pip install -r requirements.txt
47+
sudo apt-get install -y python-setuptools python3-setuptools
48+
pip install poetry
49+
poetry install
5050
5151
- name: Cache Redis
5252
id: cache-redis
@@ -72,7 +72,6 @@ jobs:
7272
- name: Unit Test with pytest
7373
timeout-minutes: 5
7474
run: |
75-
pip install pytest
7675
TLS_CERT=./redis/tests/tls/redis.crt \
7776
TLS_KEY=./redis/tests/tls/redis.key \
7877
TLS_CACERT=./redis/tests/tls/ca.crt \
@@ -185,8 +184,6 @@ jobs:
185184
- name: Generate coverage report
186185
if: matrix.platform == 'ubuntu-18.04' && matrix.python == '3.6'
187186
run: |
188-
pip install pytest
189-
pip install pytest-cov
190187
TLS_CERT=./redis/tests/tls/redis.crt \
191188
TLS_KEY=./redis/tests/tls/redis.key \
192189
TLS_CACERT=./redis/tests/tls/ca.crt \

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ python = "^3.6"
2727
redis = ">=3.0.0"
2828
redis-py-cluster = ">=2.1.0"
2929
distro = ">=1.4.0"
30-
psutil = "^5.8.0"
30+
psutil = "^3.0.0"
3131

3232
[tool.poetry.dev-dependencies]
3333
codecov = "^2.1.11"
@@ -40,6 +40,8 @@ tox-poetry = "^0.3.0"
4040
bandit = "^1.7.0"
4141
pylint = "^2.8.2"
4242
vulture = "^2.3"
43+
pytest = "^6.2.4"
44+
pytest-cov = "^2.12.0"
4345

4446
[tool.poetry.urls]
4547
repository = "https://github.com/RedisLabsModules/RLTest"

0 commit comments

Comments
 (0)