Overview
Teaching: 0 min Exercises: 15 minQuestions
How can I use automated services to perform smoke tests?
Objectives
Set up smoke tests on CircleCI
For CircleCI to know what tests to run we need to add a .circleci/config.yml
file with the following content to our repository,
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.1
steps:
- checkout
- run:
name: Install Python deps in a virtual environment
command: |
python3 -m venv myenv
. myenv/bin/activate
pip install numpy
- run:
command: |
. myenv/bin/activate
python demean_age.py
When this file is added and pushed to GitHub we can go to CircleCI.com:
Tasks:
Key Points
It’s easy to set up smoke tests on CircleCI