Upgrade dependencies and containers for end-to-end tests.
All checks were successful
build / test (push) Successful in 5m48s
build / docs (push) Successful in 1m57s

This commit is contained in:
Dan Helfman 2024-12-29 09:33:25 -08:00
parent d3409df84c
commit a6b6dd32c1
3 changed files with 14 additions and 17 deletions

View File

@ -17,12 +17,9 @@ if [ -z "$TEST_CONTAINER" ]; then
exit 1
fi
apk add --no-cache python3 py3-pip borgbackup postgresql-client mariadb-client mongodb-tools \
py3-ruamel.yaml py3-ruamel.yaml.clib py3-yaml bash sqlite fish
# If certain dependencies of black are available in this version of Alpine, install them.
apk add --no-cache py3-typed-ast py3-regex || true
python3 -m pip install --no-cache --upgrade pip==24.2 setuptools==72.1.0
pip3 install --ignore-installed tox==4.11.3
apk add --no-cache python3 py3-pip borgbackup postgresql17-client mariadb-client mongodb-tools \
py3-mongo py3-regex py3-ruamel.yaml py3-ruamel.yaml.clib py3-tox py3-typed-ast py3-yaml bash \
sqlite fish
export COVERAGE_FILE=/tmp/.coverage
tox --workdir /tmp/.tox --sitepackages

View File

@ -1,50 +1,50 @@
services:
postgresql:
image: docker.io/postgres:13.1-alpine
image: docker.io/postgres:17.2-alpine
environment:
POSTGRES_PASSWORD: test
POSTGRES_DB: test
postgresql2:
image: docker.io/postgres:13.1-alpine
image: docker.io/postgres:17.2-alpine
environment:
POSTGRES_PASSWORD: test2
POSTGRES_DB: test
command: docker-entrypoint.sh -p 5433
mariadb:
image: docker.io/mariadb:10.11.4
image: docker.io/mariadb:11.4.4
environment:
MARIADB_ROOT_PASSWORD: test
MARIADB_DATABASE: test
mariadb2:
image: docker.io/mariadb:10.11.4
image: docker.io/mariadb:11.4.4
environment:
MARIADB_ROOT_PASSWORD: test2
MARIADB_DATABASE: test
command: docker-entrypoint.sh --port=3307
not-actually-mysql:
image: docker.io/mariadb:10.11.4
image: docker.io/mariadb:11.4.4
environment:
MARIADB_ROOT_PASSWORD: test
MARIADB_DATABASE: test
not-actually-mysql2:
image: docker.io/mariadb:10.11.4
image: docker.io/mariadb:11.4.4
environment:
MARIADB_ROOT_PASSWORD: test2
MARIADB_DATABASE: test
command: docker-entrypoint.sh --port=3307
mongodb:
image: docker.io/mongo:5.0.5
image: docker.io/mongo:7.0.16
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: test
mongodb2:
image: docker.io/mongo:5.0.5
image: docker.io/mongo:7.0.16
environment:
MONGO_INITDB_ROOT_USERNAME: root2
MONGO_INITDB_ROOT_PASSWORD: test2
command: docker-entrypoint.sh --port=27018
tests:
image: docker.io/alpine:3.13
image: docker.io/alpine:3.21
environment:
TEST_CONTAINER: true
volumes:

View File

@ -28,10 +28,10 @@ commands =
[testenv:end-to-end]
package = editable
system_site_packages = True
deps =
-r test_requirements.txt
pymongo==4.4.1
.
.
pass_env = COVERAGE_FILE
commands =
pytest {posargs} --no-cov tests/end-to-end