Skip to content

Commit 6dbaa3f

Browse files
authored
CI fixes (#105)
1 parent 4cbf72d commit 6dbaa3f

File tree

3 files changed

+28
-18
lines changed

3 files changed

+28
-18
lines changed

Diff for: .github/workflows/integration.yml

+21-7
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,30 @@ jobs:
3232

3333
- name: prepare the environment
3434
run: |
35-
pip install -U setuptools pip poetry tox-docker tox-poetry
35+
python -m venv .venv
36+
source .venv/bin/activate
37+
pip install -U setuptools pip poetry==1.3.2 tox-poetry
3638
poetry config virtualenvs.create false
3739
poetry install
3840
- name: lint
39-
run: tox -e linters
41+
run: |
42+
python -m venv .venv
43+
source .venv/bin/activate
44+
tox -e linters
4045
4146
tests:
4247
name: Test on ${{ matrix.platform }} with Python ${{ matrix.python }}
43-
runs-on: ${{ matrix.platform }}
48+
runs-on: ubuntu-latest
49+
services:
50+
stack:
51+
image: redis/redis-stack-server:edge
52+
options: --health-cmd="redis-cli ping" --health-interval=10s --health-timeout=5s --health-retries=3
53+
ports:
54+
- 6379:6379
4455
env:
4556
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
4657
strategy:
4758
matrix:
48-
platform: ['ubuntu-20.04']
4959
python: ['3.7', '3.8', '3.9', '3.10', '3.11']
5060
fail-fast: false
5161
steps:
@@ -54,15 +64,19 @@ jobs:
5464
uses: actions/setup-python@v4
5565
with:
5666
python-version: ${{matrix.python}}
57-
architecture: x64
5867

5968
- name: Prepare environment
6069
run: |
61-
pip install -U setuptools pip poetry tox-docker tox-poetry
70+
python -m venv .venv
71+
source .venv/bin/activate
72+
pip install -U setuptools pip poetry==1.3.2 tox-poetry
6273
poetry config virtualenvs.create false
6374
poetry install
6475
- name: Run tests
65-
run: tox -e cover
76+
run: |
77+
python -m venv .venv
78+
source .venv/bin/activate
79+
tox -e cover
6680
- name: Upload coverage
6781
uses: codecov/codecov-action@v3
6882
if: matrix.python == '3.9' && matrix.platform != 'macos-11'

Diff for: pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ redis = "^4.5.1"
3636
pathos = "^0.2.8"
3737

3838
[tool.poetry.dev-dependencies]
39-
codecov = "^2.1.11"
39+
codecov = "2.1.13"
4040
flake8 = "^3.9.2"
4141
tox = "^3.15.0"
4242
tox-poetry = "^0.3.0"
@@ -47,7 +47,8 @@ typing-extensions = "^4.1.1"
4747
black = "^22.6.0"
4848
isort = "^5.10.1"
4949
flynt = "^0.76"
50-
tox-docker = "^3.1.0"
50+
# https://github.com/ionrock/cachecontrol/issues/292
51+
urllib3 = "1.26.15"
5152

5253
[build-system]
5354
requires = ["poetry-core>=1.0.0"]

Diff for: tox.ini

+4-9
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ exclude =.git,.tox,dist,doc,*/__pycache__/*,*test*.py
1616
profile = black
1717
multi_line_output = 3
1818

19-
[docker:redisgraph]
20-
name = redisgraph
21-
image = redislabs/redisgraph:edge
22-
ports = 6379:6379/tcp
23-
2419
[testenv:cover]
2520
whitelist_externals = find
2621
docker = redisgraph
@@ -31,8 +26,8 @@ commands =
3126

3227
[testenv:linters]
3328
commands =
34-
flake8 --show-source
35-
black --target-version py36 --check --diff .
36-
isort --check-only --dif .
29+
flake8 --show-source redisgraph_bulk_loader
30+
black --target-version py36 --check --diff redisgraph_bulk_loader
31+
isort --check-only --dif redisgraph_bulk_loader
3732
vulture redisgraph_bulk_loader/ --min-confidence 80
38-
flynt --fail-on-change --dry-run .
33+
flynt --fail-on-change --dry-run redisgraph_bulk_loader

0 commit comments

Comments
 (0)