From 06f99abac4fb94c4edefb98be3e1f51e34e23837 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 1 Mar 2023 13:25:58 -0700 Subject: [PATCH] Testing Python 3.11. --- .circleci/config.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 72dc8c53..87b60cfc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -142,6 +142,33 @@ jobs: - "venv" - run: command: './venv/bin/pytest -svv wrolpi modules' + api-tests-3-11: + docker: + - image: cimg/python:3.11 + - image: cimg/postgres:14.1 + environment: + POSTGRES_USER: postgres + POSTGRES_DB: wrolpi + POSTGRES_PASSWORD: "wrolpi" + resource_class: small + steps: + - checkout + - run: sudo apt-get update + - run: sudo apt-get install -y ffmpeg + - restore_cache: + key: deps-3.11-{{ checksum "requirements.txt" }} + - run: + name: Install Requirements + command: | + python3 -m venv venv + . venv/bin/activate + pip install -r requirements.txt + - save_cache: + key: deps-3.11-{{ checksum "requirements.txt" }} + paths: + - "venv" + - run: + command: './venv/bin/pytest -svv wrolpi modules' workflows: wrolpi-api-tests: @@ -149,6 +176,7 @@ workflows: - api-tests-3-8 - api-tests-3-9 - api-tests-3-10 + - api-tests-3-11 wrolpi-app-test: jobs: - app-tests-12