Skip to content

Commit b02653f

Browse files
Prerak SinghPrerak Singh
authored andcommitted
bug fix
1 parent 531b7ed commit b02653f

File tree

2 files changed

+122
-125
lines changed

2 files changed

+122
-125
lines changed

.github/workflows/ci.yml

Lines changed: 122 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -7,76 +7,76 @@ on:
77
branches: [main]
88

99
jobs:
10-
# test-ubuntu-py38:
11-
# runs-on: ${{matrix.os}}
12-
# timeout-minutes: 20
13-
# strategy:
14-
# fail-fast: false
15-
# matrix:
16-
# os: [ubuntu-latest]
17-
# python-version:
18-
# - "3.8"
19-
#
20-
# steps:
21-
# - uses: actions/checkout@v3
22-
#
23-
# - name: Set up Python ${{ matrix.python-version }}
24-
# uses: actions/setup-python@v4
25-
# with:
26-
# python-version: ${{ matrix.python-version }}
27-
#
28-
# - name: Upgrade pip version
29-
# run: |
30-
# python -m pip install --upgrade pip
31-
#
32-
# - name: Install requirements
33-
# run: |
34-
# python -m pip install -r requirements.txt
35-
# python -m pip install -r docs/requirements.txt
36-
#
37-
# - name: Install lcov
38-
# run: |
39-
# sudo apt-get update
40-
# sudo apt-get install -y lcov
41-
#
42-
# - name: Build package
43-
# env:
44-
# CXXFLAGS: "-std=c++17 --coverage"
45-
# CFLAGS: "--coverage"
46-
# run: |
47-
# spin build -v
48-
# # coverage tests
49-
# - name: Run tests
50-
# run: |
51-
# spin test -v
52-
#
53-
# - name: Capture Coverage Data with lcov
54-
# run: |
55-
# lcov --capture --directory . --output-file coverage.info --no-external
56-
#
57-
# - name: Generate HTML Coverage Report with genhtml
58-
# run: |
59-
# genhtml coverage.info --output-directory coverage_report
60-
#
61-
# - name: Upload Coverage
62-
# uses: codecov/codecov-action@v3
63-
# with:
64-
# token: ${{ secrets.CODECOV_TOKEN }}
65-
# directory: ./coverage/reports/
66-
# env_vars: OS,PYTHON
67-
# fail_ci_if_error: false
68-
# files: ./coverage.xml
69-
# flags: unittests
70-
# name: codecov-umbrella
71-
# path_to_write_report: ./coverage/codecov_report.txt
72-
# verbose: true
73-
#
74-
# - name: Build Documentation
75-
# run: |
76-
# sphinx-build -b html docs/source/ docs/build/html
10+
test-ubuntu-py38:
11+
runs-on: ${{matrix.os}}
12+
timeout-minutes: 20
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest]
17+
python-version:
18+
- "3.8"
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Upgrade pip version
29+
run: |
30+
python -m pip install --upgrade pip
31+
32+
- name: Install requirements
33+
run: |
34+
python -m pip install -r requirements.txt
35+
python -m pip install -r docs/requirements.txt
36+
37+
- name: Install lcov
38+
run: |
39+
sudo apt-get update
40+
sudo apt-get install -y lcov
41+
42+
- name: Build package
43+
env:
44+
CXXFLAGS: "-std=c++17 --coverage"
45+
CFLAGS: "--coverage"
46+
run: |
47+
spin build -v
48+
# coverage tests
49+
- name: Run tests
50+
run: |
51+
spin test -v
52+
53+
- name: Capture Coverage Data with lcov
54+
run: |
55+
lcov --capture --directory . --output-file coverage.info --no-external
56+
57+
- name: Generate HTML Coverage Report with genhtml
58+
run: |
59+
genhtml coverage.info --output-directory coverage_report
60+
61+
- name: Upload Coverage
62+
uses: codecov/codecov-action@v3
63+
with:
64+
token: ${{ secrets.CODECOV_TOKEN }}
65+
directory: ./coverage/reports/
66+
env_vars: OS,PYTHON
67+
fail_ci_if_error: false
68+
files: ./coverage.xml
69+
flags: unittests
70+
name: codecov-umbrella
71+
path_to_write_report: ./coverage/codecov_report.txt
72+
verbose: true
73+
74+
- name: Build Documentation
75+
run: |
76+
sphinx-build -b html docs/source/ docs/build/html
7777
7878
test-ubuntu-py39-py310:
79-
runs-on: ${{ matrix.os }}
79+
runs-on: ${{matrix.os}}
8080
timeout-minutes: 20
8181
strategy:
8282
fail-fast: false
@@ -102,9 +102,8 @@ jobs:
102102
run: |
103103
python -m pip install -r requirements.txt
104104
python -m pip install -r docs/requirements.txt
105-
python -m pip install meson-python meson ninja pytest
106105
107-
- name: Build package (Meson)
106+
- name: Build package
108107
env:
109108
CXXFLAGS: "-std=c++17"
110109
run: |
@@ -113,19 +112,20 @@ jobs:
113112
- name: Run tests
114113
run: |
115114
spin test -v
115+
116116
- name: Build Documentation
117117
run: |
118118
sphinx-build -b html docs/source/ docs/build/html
119119
120120
test-macos:
121-
runs-on: ${{ matrix.os }}
121+
runs-on: ${{matrix.os}}
122122
timeout-minutes: 20
123123
strategy:
124124
fail-fast: false
125125
matrix:
126126
os: [macos-latest]
127127
python-version:
128-
# - "3.8"
128+
- "3.8"
129129
- "3.9"
130130
- "3.10"
131131

@@ -145,9 +145,8 @@ jobs:
145145
run: |
146146
python -m pip install -r requirements.txt
147147
python -m pip install -r docs/requirements.txt
148-
python -m pip install meson-python meson ninja pytest
149148
150-
- name: Build package (Meson)
149+
- name: Build package
151150
env:
152151
MACOSX_DEPLOYMENT_TARGET: 11.0
153152
CXXFLAGS: "-std=c++17"
@@ -161,53 +160,52 @@ jobs:
161160
run: |
162161
sphinx-build -b html docs/source/ docs/build/html
163162
164-
# test-windows:
165-
# runs-on: ${{matrix.os}}
166-
# timeout-minutes: 20
167-
# strategy:
168-
# fail-fast: false
169-
# matrix:
170-
# os: [windows-latest]
171-
# python-version:
172-
# # - "3.8"
173-
# - "3.9"
174-
#
175-
# steps:
176-
# - uses: actions/checkout@v3
177-
#
178-
# - name: Set up Python ${{ matrix.python-version }}
179-
# uses: actions/setup-python@v4
180-
# with:
181-
# python-version: ${{ matrix.python-version }}
182-
#
183-
# - name: Setup conda
184-
# uses: s-weigand/setup-conda@v1
185-
# with:
186-
# update-conda: true
187-
# python-version: ${{ matrix.python-version }}
188-
# conda-channels: anaconda, conda-forge
189-
# # - run: conda --version # This fails due to unknown reasons
190-
# - run: which python
191-
#
192-
# - name: Upgrade pip version
193-
# run: |
194-
# python -m pip install --upgrade pip
195-
#
196-
# - name: Install requirements
197-
# run: |
198-
# python -m pip install -r requirements.txt
199-
# python -m pip install -r docs/requirements.txt
200-
#
201-
# - name: Build package
202-
# env:
203-
# CL: "/std:c++17"
204-
# run: |
205-
# spin build -v
206-
#
207-
# - name: Run tests
208-
# run: |
209-
# spin test -v
210-
#
211-
# - name: Build Documentation
212-
# run: |
213-
# sphinx-build -b html docs/source/ docs/build/html
163+
test-windows:
164+
runs-on: ${{matrix.os}}
165+
timeout-minutes: 20
166+
strategy:
167+
fail-fast: false
168+
matrix:
169+
os: [windows-latest]
170+
python-version:
171+
- "3.8"
172+
173+
steps:
174+
- uses: actions/checkout@v3
175+
176+
- name: Set up Python ${{ matrix.python-version }}
177+
uses: actions/setup-python@v4
178+
with:
179+
python-version: ${{ matrix.python-version }}
180+
181+
- name: Setup conda
182+
uses: s-weigand/setup-conda@v1
183+
with:
184+
update-conda: true
185+
python-version: ${{ matrix.python-version }}
186+
conda-channels: anaconda, conda-forge
187+
# - run: conda --version # This fails due to unknown reasons
188+
- run: which python
189+
190+
- name: Upgrade pip version
191+
run: |
192+
python -m pip install --upgrade pip
193+
194+
- name: Install requirements
195+
run: |
196+
python -m pip install -r requirements.txt
197+
python -m pip install -r docs/requirements.txt
198+
199+
- name: Build package
200+
env:
201+
CL: "/std:c++17"
202+
run: |
203+
spin build -v
204+
205+
- name: Run tests
206+
run: |
207+
spin test -v
208+
209+
- name: Build Documentation
210+
run: |
211+
sphinx-build -b html docs/source/ docs/build/html

pydatastructs/utils/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from . import (
44
misc_util,
55
testing_util,
6-
_extensions
76
)
87

98
from .misc_util import (

0 commit comments

Comments
 (0)