From aac4203bfb9ceb39128c3734c6c81b4ce7d756d0 Mon Sep 17 00:00:00 2001 From: joeylegere Date: Mon, 27 Jun 2022 16:00:42 -0400 Subject: [PATCH] Bugfix circleci python version (#801) * try using hash of actual version of python * allow coverage reports to fail * use env variable for PYTHON_VERSION * syntax * export python version correctly * typo * why does this make it crash * debugging * debugging * admit defeat to circleci and hardcode minor python version * add job that checks all tests passed * syntax Co-authored-by: Joey Legere --- .circleci/config.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2218a8f988..d3c6ded617 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -88,6 +88,14 @@ jobs: CI_JOB_ID: $CIRCLE_NODE_INDEX COVERALLS_PARALLEL: true + unit-tests-all-python-versions: + docker: + - image: cimg/python:3.10 + steps: + - run: + name: Placeholder command + command: echo "Success, only runs if all python versions ran" + coveralls: docker: - image: cimg/python:3.10 @@ -96,7 +104,7 @@ jobs: name: Combine Coverage command: | pip3 install --upgrade coveralls - coveralls --finish --rcfile .coveragerc + coveralls --finish --rcfile .coveragerc || echo "Failed to upload coverage" workflows: pre-pr: @@ -104,7 +112,10 @@ workflows: - build-and-test: matrix: parameters: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.7", "3.8", "3.9", "3.10.5"] + - unit-tests-all-python-versions: + requires: + - build-and-test - coveralls: requires: - build-and-test