Skip to content

Commit 0bdc710

Browse files
Prerak SinghPrerak Singh
authored andcommitted
disabled py3.8 checks and fixed nodes issue
1 parent 8eabb3d commit 0bdc710

File tree

2 files changed

+117
-118
lines changed

2 files changed

+117
-118
lines changed

.github/workflows/ci.yml

Lines changed: 115 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -7,73 +7,73 @@ 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:
7979
runs-on: ${{matrix.os}}
@@ -125,7 +125,7 @@ jobs:
125125
matrix:
126126
os: [macos-latest]
127127
python-version:
128-
- "3.8"
128+
# - "3.8"
129129
- "3.9"
130130
- "3.10"
131131

@@ -160,52 +160,53 @@ jobs:
160160
run: |
161161
sphinx-build -b html docs/source/ docs/build/html
162162
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-
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+
# - "3.9"
173+
#
174+
# steps:
175+
# - uses: actions/checkout@v3
176+
#
177+
# - name: Set up Python ${{ matrix.python-version }}
178+
# uses: actions/setup-python@v4
179+
# with:
180+
# python-version: ${{ matrix.python-version }}
181+
#
182+
# - name: Setup conda
183+
# uses: s-weigand/setup-conda@v1
184+
# with:
185+
# update-conda: true
186+
# python-version: ${{ matrix.python-version }}
187+
# conda-channels: anaconda, conda-forge
188+
# # - run: conda --version # This fails due to unknown reasons
189+
# - run: which python
190+
#
191+
# - name: Upgrade pip version
192+
# run: |
193+
# python -m pip install --upgrade pip
194+
#
195+
# - name: Install requirements
196+
# run: |
197+
# python -m pip install -r requirements.txt
198+
# python -m pip install -r docs/requirements.txt
199+
#
200+
# - name: Build package
201+
# env:
202+
# CL: "/std:c++17"
203+
# run: |
204+
# spin build -v
205+
#
206+
# - name: Run tests
207+
# run: |
208+
# spin test -v
209+
#
209210
# - name: Build Documentation
210211
# run: |
211212
# sphinx-build -b html docs/source/ docs/build/html

pydatastructs/utils/meson.build

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@ python.install_sources(
1616
)
1717

1818
python.extension_module(
19-
'_nodes',
19+
'pydatastructs.utils._backend.cpp._nodes',
2020
'_backend/cpp/nodes.cpp',
2121
install: true,
22-
subdir: 'pydatastructs/utils/_backend/cpp'
2322
)
2423

2524
python.extension_module(
26-
'_graph_utils',
25+
'pydatastructs.utils._backend.cpp._graph_utils',
2726
'_backend/cpp/graph_utils.cpp',
2827
install: true,
29-
subdir: 'pydatastructs/utils/_backend/cpp'
3028
)
3129

3230
subdir('tests')

0 commit comments

Comments
 (0)