diff --git a/.cirrus.yml b/.cirrus.yml index 0ca40e5825e..fce7f030b1b 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -4,7 +4,7 @@ freebsd_instance: memory: 4G test_task: - name: "Tests / FreeBSD / " + name: "Tests / pytest [FreeBSD]" only_if: $CIRRUS_TAG == '' skip: "!changesInclude('.cirrus.yml', 'poetry.lock', 'pyproject.toml', 'src/**.py', 'tests/**')" env: @@ -12,19 +12,14 @@ test_task: # avoid failures on tests that depend on it. SHELL: sh matrix: - - PYTHON: python3.8 - - PYTHON: python3.9 - - PYTHON: python3.10 - - PYTHON: python3.11 - install_prereqs_script: - - V=$(printf '%s' $PYTHON | tr -d '.[:alpha:]') - - pkg install -y python${V} py${V}-sqlite3 - install_poetry_script: - - POETRY_HOME=/opt/poetry - - $PYTHON -m venv $POETRY_HOME - - $POETRY_HOME/bin/pip install --upgrade pip setuptools wheel - - $POETRY_HOME/bin/pip install poetry - - echo "PATH=$POETRY_HOME/bin:$PATH" >> $CIRRUS_ENV + - PY: 38 + - PY: 39 + - PY: 310 + - PY: 311 + bootstrap_poetry_script: + - pkg install -y python${PY} py${py}-sqlite3 devel/py-pipx + - pipx install poetry + - pipx ensurepath install_and_test_script: - poetry install - poetry run pytest --junitxml=junit.xml -v