@@ -28,30 +28,33 @@ jobs:
2828 - name : Upgrade pip version
2929 run : |
3030 python -m pip install --upgrade pip
31+
3132 - name : Install requirements
3233 run : |
3334 pip install -r requirements.txt
3435 pip install -r docs/requirements.txt
35-
36+
3637 - name : Install lcov
3738 run : |
3839 sudo apt-get update
3940 sudo apt-get install -y lcov
41+
4042 - name : Build package
4143 run : |
4244 CXXFLAGS=--coverage CFLAGS=--coverage python scripts/build/install.py
43-
44- # coverage tests
45+ # coverage tests
4546 - name : Run tests
4647 run : |
4748 python -m pytest --doctest-modules --cov=./ --cov-report=xml -s
49+
4850 - name : Capture Coverage Data with lcov
4951 run : |
5052 lcov --capture --directory . --output-file coverage.info --no-external
51-
53+
5254 - name : Generate HTML Coverage Report with genhtml
5355 run : |
5456 genhtml coverage.info --output-directory coverage_report
57+
5558 - name : Upload Coverage
5659 uses : codecov/codecov-action@v3
5760 with :
@@ -91,16 +94,20 @@ jobs:
9194 - name : Upgrade pip version
9295 run : |
9396 python -m pip install --upgrade pip
97+
9498 - name : Install requirements
9599 run : |
96100 pip install -r requirements.txt
97101 pip install -r docs/requirements.txt
102+
98103 - name : Build package
99104 run : |
100105 python scripts/build/install.py
106+
101107 - name : Run tests
102108 run : |
103109 python -c "import pydatastructs; pydatastructs.test(only_benchmarks=True)"
110+
104111 - name : Build Documentation
105112 run : |
106113 sphinx-build -b html docs/source/ docs/build/html
@@ -128,16 +135,20 @@ jobs:
128135 - name : Upgrade pip version
129136 run : |
130137 python -m pip install --upgrade pip
138+
131139 - name : Install requirements
132140 run : |
133141 pip install -r requirements.txt
134142 pip install -r docs/requirements.txt
143+
135144 - name : Build package
136145 run : |
137146 python scripts/build/install.py
147+
138148 - name : Run tests
139149 run : |
140150 python -c "import pydatastructs; pydatastructs.test()"
151+
141152 - name : Build Documentation
142153 run : |
143154 sphinx-build -b html docs/source/ docs/build/html
@@ -160,34 +171,31 @@ jobs:
160171 with :
161172 python-version : ${{ matrix.python-version }}
162173
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
177181
178182 - name : Upgrade pip version
179183 run : |
180184 python -m pip install --upgrade pip
185+
181186 - name : Install requirements
182187 run : |
183188 pip install -r requirements.txt
184189 pip install -r docs/requirements.txt
190+
185191 - name : Build package
186192 run : |
187193 python scripts/build/install.py
194+
188195 - name : Run tests
189196 run : |
190197 python -c "import pydatastructs; pydatastructs.test()"
198+
191199 - name : Build Documentation
192200 run : |
193201 sphinx-build -b html docs/source/ docs/build/html
0 commit comments