Skip to content

Commit

Permalink
Bugfix circleci python version (#801)
Browse files Browse the repository at this point in the history
* 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 <joey@opentensor.ai>
  • Loading branch information
joeylegere and Joey Legere committed Jun 27, 2022
1 parent ef6e2a3 commit aac4203
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -96,15 +104,18 @@ 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:
jobs:
- 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

0 comments on commit aac4203

Please sign in to comment.