um-computacion-tm/scrabble-2023-meschinidino

View on GitHub
.circleci/config.yml

Summary

Maintainability
Test Coverage
version: 2.1
jobs:
  build:
    environment:
      CC_TEST_REPORTER_ID: 4dd57e4a9631ba9edcf5ceb5a1c6d215c13460e0b8089a81241cbca356212b47
    docker:
      - image: cimg/python:3.10.1
    steps:
      - checkout
      - run:
          name: Setup Code Climate test-reporter
          command: |
              # download test reporter as a static binary
              curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
              chmod +x ./cc-test-reporter
              ./cc-test-reporter before-build
      - run:
          name: Install dependencies
          command: pip install -r requirements.txt
      - run:
          name: Running Tests
          command: coverage run -m unittest && coverage xml && coverage report -m
      - run:
          name: Update CodeClimate coverage report
          command: |
              ./cc-test-reporter after-build