Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set the default subtitles language in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Connecting to CircleCI

Give Feedback

This lesson first reveals you how to properly set up the CircleCI config.yml file, which is used to specify the environment and the commands executed in the CircleCI environment. Subsequently, you’ll have a look at the CircleCI web interface to explore the Continuous Integration (CI) tasks, you have defined and which were run after pushing your changes to GitHub.

Note: If you want to learn more about things you can specify in the circleci/config.yml, check out the official documentation.

W Patrick Jones on Dec. 15, 2019

Installing dependencies failed for me because it ran python3 -m venv venv . venv/bin/activate pip install -r requirements.txt all on the same line. I copied your yml file precisely, but it is running all three commands on the same line, causing an unrecognized arguments error. Suggestions?

version: 2
jobs:
  build:
    docker:
      - image: circleci/python:3.7

    working_directory: ~/repo

    steps:
      - checkout
      - run:
          name: install dependencies
          command:
            python3 -m venv venv
            . venv/bin/activate
            pip install -r requirements.txt

      - run:
          name: run tests
          command:
            . venv/bin/activate
            flake8 --exclude=venv* --statistics
            pytest -v --cov=calculator```

Joe Tatusko RP Team on Dec. 17, 2019

Hi Patrick, sorry for the delay, it took a while to reproduce the error on my end. You have the yml file copied almost precisely, but note the pipe operators after “command:”

CircleCI used the “|” symbol to indicate that there will be multiple lines of commands, and then handles them accordingly. Try that out and let me know if it works!

Dave Wilson on Feb. 5, 2020

My build failed due to a line in the requirements, pkg-resources==0.0.0. I looked into this, and apparently it is a known issue with ubuntu: github.com/pypa/pip/issues/4022.

My build passed when I removed this line from requirements.txt. Thanks for the tutorial!

Joe Tatusko RP Team on Feb. 5, 2020

That’s a great catch, thanks for sharing the fix!

Billa123 on March 24, 2020

My tests are failing while building in CircleCI. Any suggestion?

#!/bin/bash -eo pipefail
./manage.py test
/bin/bash: ./manage.py: No such file or directory

Exited with code exit status 127
CircleCI received exit code 127

Billa123 on March 24, 2020

I’m able to solve the problem. Ignore my previous comments.

Joe Tatusko RP Team on March 25, 2020

Hi Naresh, were you able to solve the unit test errors as well?

Glad to know you got it working!

Billa123 on March 25, 2020

Yes, I’m able to solve it.

Nursultan on April 27, 2020

Hey @Billa123,

how did you resolve the issue? I have the same error : /manage.py: No such file or directory

Nursultan on April 27, 2020

Hi, please disregard my previous comment. I was able to solve the issue.

Howard M Sherman on May 10, 2020

@Billa123, I got that same problem you mentioned in your message on March 24, the “./manage.py no such file or directory” error. How did you fix it?

Ricky White RP Team on May 11, 2020

Hi @Howard. That usually means you are in the wrong directory when you are accessing the manage.py script. So you will need to fix the path.

Mike Allan Nillo on June 20, 2020

Hi! I have received a build error: No configuration was found in your project. I run the first build while having a typo in folder, I think it has something to do with cache. How can I solve it?

Become a Member to join the conversation.