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