@@ -22,11 +22,11 @@ jobs:
2222 matrix :
2323 python-version : ["3.9", "3.10", "3.11", "3.12", "3.13"]
2424 os : ["ubuntu-latest", "macOS-latest", "windows-latest"]
25- backend : ["local", "db "]
25+ backend : ["local", "mongodb "]
2626 exclude :
2727 # ToDo: take if back when the connection become stable
2828 # or resolve using `InMemoryMongoClient`
29- - { os: "macOS-latest", backend: "db " }
29+ - { os: "macOS-latest", backend: "mongodb " }
3030 env :
3131 CACHIER_TEST_HOST : " localhost"
3232 CACHIER_TEST_PORT : " 27017"
@@ -53,21 +53,21 @@ jobs:
5353 run : pytest -m "not mongo" --cov=cachier --cov-report=term --cov-report=xml:cov.xml
5454
5555 - name : Setup docker (missing on MacOS)
56- if : runner.os == 'macOS' && matrix.backend == 'db '
56+ if : runner.os == 'macOS' && matrix.backend == 'mongodb '
5757 run : |
5858 brew install docker
5959 colima start
6060 # For testcontainers to find the Colima socket
6161 sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
6262 # ToDo: find a way to cache docker images
6363 # - name: Cache Container Images
64- # if: matrix.backend == 'db '
64+ # if: matrix.backend == 'mongodb '
6565 # uses: borda/cache-container-images-action@b32a5e804cb39af3c3d134fc03ab76eac0bfcfa9
6666 # with:
6767 # prefix-key: "mongo-db"
6868 # images: mongo:latest
6969 - name : Start MongoDB in docker
70- if : matrix.backend == 'db '
70+ if : matrix.backend == 'mongodb '
7171 run : |
7272 # start MongoDB in a container
7373 docker run -d -p ${{ env.CACHIER_TEST_PORT }}:27017 --name mongodb mongo:latest
7676 # show running containers
7777 docker ps -a
7878 - name : Unit tests (DB)
79- if : matrix.backend == 'db '
79+ if : matrix.backend == 'mongodb '
8080 run : pytest -m "mongo" --cov=cachier --cov-report=term --cov-report=xml:cov.xml
8181 - name : Speed eval
8282 run : python tests/speed_eval.py
0 commit comments