@@ -87,8 +87,8 @@ python3 -m venv venv3
87
87
# Activate venv3
88
88
source venv3/bin/activate
89
89
90
- # Install requirements
91
- pip install -r requirements.txt
90
+ # Install dev- requirements
91
+ pip install -r dev- requirements.txt
92
92
```
93
93
94
94
#### Running the unit tests
@@ -141,17 +141,17 @@ python2.7 -m virtualenv venv2
141
141
# Activate venv2
142
142
source venv2/bin/activate
143
143
144
- # Install requirements
145
- pip install -r requirements.txt
144
+ # Install dev- requirements
145
+ pip install -r dev- requirements.txt
146
146
```
147
147
148
- Note that a slightly different set of requirements is installed for python 2.7, as most of the static analysis tools in
149
- the automated build are run in python 3.8, so are not requirements for the python 2.7 environment.
148
+ Note that a slightly different set of dev requirements is installed for python 2.7, as most of the static analysis tools in
149
+ the automated build are run in python 3.8, so are not dev requirements for the python 2.7 environment.
150
150
151
151
#### Running the build, tests and static analysis locally
152
152
153
153
A bash script is provided to automate running the static analysis, and tests in both python 2.7 and python 3.8
154
- environments. You will need to have set up ` venv ` s as described above, with the requirements pre-installed. You will
154
+ environments. You will need to have set up ` venv ` s as described above, with the dev- requirements pre-installed. You will
155
155
then be able to run the build, passing the locations of the python 2.7 and python 3.8 ` venv ` s as environment variables:
156
156
157
157
``` bash
@@ -163,7 +163,7 @@ If you are running on Windows, you will need to run the automated build in a doc
163
163
#### Configure PyCharm to be able to run Ansible collection unit tests
164
164
165
165
First, add the ` ansible_pytest_collections ` plugin to ` PYTHONPATH ` for your python interpreter. This will be in your
166
- venv if you installed the dependencies using the requirements file:
166
+ venv if you installed the dependencies using the dev requirements file:
167
167
168
168
- `Preferences > Project: cics-ansible > Python Interpreter > Cog menu > Show all >
169
169
Select your interpreter > Show paths for the selected interpreter (at the bottom) > Plus >
0 commit comments