You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For a detailed guide to building and testing with Python, read the docs:
5
-
# https://circleci.com/docs/language-python/ for more details
6
1
version: 2.1
7
2
8
-
# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
9
-
# See: https://circleci.com/docs/orb-intro/
10
-
orbs:
11
-
# See the Python orb documentation here: https://circleci.com/developer/orbs/orb/circleci/python
- image: cimg/python:3.8 # Use the correct Python version
27
7
steps:
28
-
# Checkout the code as the first step.
29
-
- checkout
30
-
- python/install-packages:
31
-
pkg-manager: pip
32
-
# app-dir: ~/project/package-directory/ # If your requirements.txt isn't in the root directory.
33
-
# pip-dependency-file: test-requirements.txt # if you have a different name for your requirements file, maybe one that combines your runtime and test requirements.
8
+
- checkout # Pull down the source code
9
+
- run:
10
+
name: Install dependencies
11
+
command: |
12
+
python -m venv venv
13
+
. venv/bin/activate
14
+
pip install -r requirements.txt
15
+
pip install -r requirements-dev.txt
16
+
pip install pytest # Ensure pytest is installed
34
17
- run:
35
18
name: Run tests
36
-
# This assumes pytest is installed via the install-package step above
0 commit comments