Skip to content

Commit 7808ff7

Browse files
committed
BLD: Update method to install pytest
1 parent 1b7040e commit 7808ff7

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
3232
- name: Install requirements
3333
run: |
34-
pip install -r requirements.txt
35-
pip install -r docs/requirements.txt
36-
34+
python -m pip install -r requirements.txt
35+
python -m pip install -r docs/requirements.txt
36+
3737
- name: Install lcov
3838
run: |
3939
sudo apt-get update
@@ -42,15 +42,15 @@ jobs:
4242
- name: Build package
4343
run: |
4444
CXXFLAGS=--coverage CFLAGS=--coverage python scripts/build/install.py
45-
# coverage tests
45+
# coverage tests
4646
- name: Run tests
4747
run: |
4848
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
4949
5050
- name: Capture Coverage Data with lcov
5151
run: |
5252
lcov --capture --directory . --output-file coverage.info --no-external
53-
53+
5454
- name: Generate HTML Coverage Report with genhtml
5555
run: |
5656
genhtml coverage.info --output-directory coverage_report
@@ -97,8 +97,8 @@ jobs:
9797
9898
- name: Install requirements
9999
run: |
100-
pip install -r requirements.txt
101-
pip install -r docs/requirements.txt
100+
python -m pip install -r requirements.txt
101+
python -m pip install -r docs/requirements.txt
102102
103103
- name: Build package
104104
run: |
@@ -138,8 +138,8 @@ jobs:
138138
139139
- name: Install requirements
140140
run: |
141-
pip install -r requirements.txt
142-
pip install -r docs/requirements.txt
141+
python -m pip install -r requirements.txt
142+
python -m pip install -r docs/requirements.txt
143143
144144
- name: Build package
145145
run: |
@@ -186,8 +186,8 @@ jobs:
186186
187187
- name: Install requirements
188188
run: |
189-
pip install -r requirements.txt
190-
pip install -r docs/requirements.txt
189+
python -m pip install -r requirements.txt
190+
python -m pip install -r docs/requirements.txt
191191
192192
- name: Build package
193193
run: |

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ channels:
55
dependencies:
66
- python=3.8
77
- pip
8+
- pytest
89
- pip:
910
- codecov
1011
- pytest-cov

0 commit comments

Comments
 (0)