@@ -28,30 +28,33 @@ jobs:
28
28
- name : Upgrade pip version
29
29
run : |
30
30
python -m pip install --upgrade pip
31
+
31
32
- name : Install requirements
32
33
run : |
33
34
pip install -r requirements.txt
34
35
pip install -r docs/requirements.txt
35
-
36
+
36
37
- name : Install lcov
37
38
run : |
38
39
sudo apt-get update
39
40
sudo apt-get install -y lcov
41
+
40
42
- name : Build package
41
43
run : |
42
44
CXXFLAGS=--coverage CFLAGS=--coverage python scripts/build/install.py
43
-
44
- # coverage tests
45
+ # coverage tests
45
46
- name : Run tests
46
47
run : |
47
48
python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
49
+
48
50
- name : Capture Coverage Data with lcov
49
51
run : |
50
52
lcov --capture --directory . --output-file coverage.info --no-external
51
-
53
+
52
54
- name : Generate HTML Coverage Report with genhtml
53
55
run : |
54
56
genhtml coverage.info --output-directory coverage_report
57
+
55
58
- name : Upload Coverage
56
59
uses : codecov/codecov-action@v3
57
60
with :
@@ -91,16 +94,20 @@ jobs:
91
94
- name : Upgrade pip version
92
95
run : |
93
96
python -m pip install --upgrade pip
97
+
94
98
- name : Install requirements
95
99
run : |
96
100
pip install -r requirements.txt
97
101
pip install -r docs/requirements.txt
102
+
98
103
- name : Build package
99
104
run : |
100
105
python scripts/build/install.py
106
+
101
107
- name : Run tests
102
108
run : |
103
109
python -c "import pydatastructs; pydatastructs.test(only_benchmarks=True)"
110
+
104
111
- name : Build Documentation
105
112
run : |
106
113
sphinx-build -b html docs/source/ docs/build/html
@@ -128,16 +135,20 @@ jobs:
128
135
- name : Upgrade pip version
129
136
run : |
130
137
python -m pip install --upgrade pip
138
+
131
139
- name : Install requirements
132
140
run : |
133
141
pip install -r requirements.txt
134
142
pip install -r docs/requirements.txt
143
+
135
144
- name : Build package
136
145
run : |
137
146
python scripts/build/install.py
147
+
138
148
- name : Run tests
139
149
run : |
140
150
python -c "import pydatastructs; pydatastructs.test()"
151
+
141
152
- name : Build Documentation
142
153
run : |
143
154
sphinx-build -b html docs/source/ docs/build/html
@@ -160,34 +171,31 @@ jobs:
160
171
with :
161
172
python-version : ${{ matrix.python-version }}
162
173
163
- # Manually install Miniconda and setup
164
- - name : Install Miniconda
165
- run : |
166
- curl -o Miniconda3-latest-Windows-x86_64.exe https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe
167
- start /wait Miniconda3-latest-Windows-x86_64.exe /S /D=C:\Miniconda
168
- C:\Miniconda\Scripts\conda.exe init
169
-
170
- - name : Check Conda Version
171
- run : |
172
- C:\Miniconda\Scripts\conda.exe --version
173
-
174
- - name : Check Conda Info
175
- run : |
176
- C:\Miniconda\Scripts\conda.exe info
174
+ - name : Setup conda
175
+ uses : s-weigand/setup-conda@v1
176
+ with :
177
+ update-conda : true
178
+ python-version : ${{ matrix.python-version }}
179
+ conda-channels : anaconda, conda-forge
180
+ - run : which python
177
181
178
182
- name : Upgrade pip version
179
183
run : |
180
184
python -m pip install --upgrade pip
185
+
181
186
- name : Install requirements
182
187
run : |
183
188
pip install -r requirements.txt
184
189
pip install -r docs/requirements.txt
190
+
185
191
- name : Build package
186
192
run : |
187
193
python scripts/build/install.py
194
+
188
195
- name : Run tests
189
196
run : |
190
197
python -c "import pydatastructs; pydatastructs.test()"
198
+
191
199
- name : Build Documentation
192
200
run : |
193
201
sphinx-build -b html docs/source/ docs/build/html
0 commit comments