Skip to content

Commit 6f07d0d

Browse files
authored
Merge pull request #53 from jajupmochi/v0.2.x
V0.2.x
2 parents d6ea77d + 08c5a41 commit 6f07d0d

File tree

60,860 files changed

+24344
-9420885
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60,860 files changed

+24344
-9420885
lines changed
Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
name: graphkit-learn
2+
3+
run-name: ${{ github.actor }} is testing graphkit-learn out GitHub Actions 🚀
4+
5+
on: [ push, pull_request ]
6+
7+
jobs:
8+
CI-CentOS:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
python-version: [ "3.8.6" ] # , "3.9", "3.10" ]
15+
container: [ "centos:latest" ] # [ "centos:7" ]
16+
17+
container:
18+
image: ${{ matrix.container }}
19+
20+
steps:
21+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
22+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
23+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
24+
25+
- name: Check out repository code
26+
uses: actions/checkout@v3
27+
28+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
29+
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
30+
- run: echo "🪵 The root directory of the checked-out repository is:"
31+
- run: echo $GITHUB_WORKSPACE
32+
- name: List files in the repository
33+
run: |
34+
pwd
35+
ls /
36+
printf "\nThe files contained in the repository (GITHUB_WORKSPACE):\n"
37+
ls $GITHUB_WORKSPACE
38+
- run: echo "🍏 This job's status is ${{ job.status }}."
39+
40+
- name: Install Python
41+
run: |
42+
yum -y install python38
43+
44+
# - name: Install system-level dependencies
45+
# run: |
46+
# #%% lsb-core is required for actions/setup-python@v4:
47+
# printf "\nInstalling redhat-lsb-core:\n"
48+
# yum install -y redhat-lsb-core
49+
# printf "\n"
50+
# printf "\nInstalling dependencies for installing make and glibc:\n"
51+
# yum install -y git gcc make wget which alias
52+
53+
# - name: Upgrade make for installing glibc
54+
# run: |
55+
# #%% Install a higher version of make: (The latest version on CentOS 7
56+
# #%% is 3.82.)
57+
# # Determine the current version of make that is installed:
58+
# printf "\nCurrent version of make installed:\n"
59+
# rpm -q make
60+
# printf "\n"
61+
# # Check if a newer version of make is available in the official CentOS
62+
# # repositories:
63+
# printf "\nThe latest version of make available on the current system:\n"
64+
# yum list make
65+
# printf "\n"
66+
# printf "\nInstalling make 4.4 from source:\n"
67+
# cd $HOME
68+
# mkdir -p softwares
69+
# cd softwares
70+
# echo "Current work directory:"
71+
# pwd
72+
# wget --no-check-certificate https://ftp.gnu.org/gnu/make/make-4.4.tar.gz
73+
# tar -xzvf make-4.4.tar.gz
74+
# cd make-4.4
75+
# ./configure --prefix=$HOME/installed/make-4.4
76+
# make && make install
77+
# echo 'export PATH=$HOME/installed/make-4.4/bin:$PATH' >> ~/.bashrc
78+
# source ~/.bashrc
79+
# echo "Current PATH:"
80+
# echo $PATH
81+
# printf "\n"
82+
# # Verify that make has been installed:
83+
# printf "\nThe new version of make installed:\n"
84+
# rpm -q make
85+
# which make
86+
# alias
87+
# ls -l $(which make)
88+
# printf "\n"
89+
# printf "\ncd back:\n"
90+
# cd $GITHUB_WORKSPACE
91+
# echo "Current work directory:"
92+
# pwd
93+
94+
# - name: Upgrade gcc for installing glibc
95+
# run: |
96+
# #%% Install a higher version of gcc: (The latest version on CentOS 7
97+
# #%% is 4.8.5.)
98+
# # Determine the current version of gcc that is installed:
99+
# printf "\nCurrent version of gcc installed:\n"
100+
# rpm -q gcc
101+
# printf "\n"
102+
# # Check if a newer version of gcc is available in the official CentOS
103+
# # repositories:
104+
# printf "\nThe latest version of gcc available on the current system:\n"
105+
# yum list gcc
106+
# printf "\n"
107+
# printf "\nInstalling the required dependencies for installing gcc:\n"
108+
# yum install -y bzip2 gcc-c++ gmp-devel mpfr-devel libmpc-devel
109+
# printf "\n"
110+
# printf "\nInstalling the latest version of gcc from source:\n"
111+
# cd $HOME/
112+
# mkdir -p softwares
113+
# cd softwares
114+
# echo "Current work directory:"
115+
# pwd
116+
# wget --no-check-certificate https://ftp.gnu.org/gnu/gcc/gcc-7.4.0/gcc-7.4.0.tar.gz
117+
# tar -xzvf gcc-7.4.0.tar.gz
118+
# cd gcc-7.4.0
119+
# # ./contrib/download_prerequisites # Solve the gmp, mpfr, mpc problems.
120+
# mkdir build
121+
# cd build
122+
# ../configure --prefix=$HOME/installed/gcc-7.4.0 -enable-languages=c,c++ -disable-multilib
123+
# make -j$(nproc)
124+
# make install
125+
# export PATH=$HOME/installed/gcc-7.4.0/bin:$PATH
126+
# export LD_LIBRARY_PATH=$HOME/installed/gcc-7.4.0/lib64:$HOME/installed/gcc-7.4.0/lib:$LD_LIBRARY_PATH
127+
# export LIBRARY_PATH=$HOME/installed/gcc-7.4.0/lib64:$HOME/installed/gcc-7.4.0/lib:$LIBRARY_PATH
128+
# printf "\n"
129+
# # Verify that gcc has been installed:
130+
# printf "\nThe new version of gcc installed:\n"
131+
# rpm -q gcc
132+
# gcc -v
133+
# which gcc
134+
# ls -l $(which gcc)
135+
# printf "\n"
136+
# printf "\ncd back:\n"
137+
# cd $GITHUB_WORKSPACE
138+
# echo "Current work directory:"
139+
# pwd
140+
#
141+
# - name: Upgrade glibc
142+
# run: |
143+
# #%% Install a higher version of glibc: (The latest version on CentOS 7
144+
# #%% is 2.17, while at least 2.27 is required for the latest Python 3.8.)
145+
# # Determine the current version of glibc that is installed:
146+
# printf "\nCurrent version of glibc installed:\n"
147+
# rpm -q glibc
148+
# printf "\n"
149+
# # Check if a newer version of glibc is available in the official CentOS
150+
# # repositories:
151+
# printf "\nThe latest version of glibc available on the current system:\n"
152+
# yum list glibc
153+
# printf "\n"
154+
# printf "\nInstalling the required dependencies for installing glibc:\n"
155+
# yum install -y bison flex gawk gettext-devel texinfo
156+
# printf "\n"
157+
# printf "\nInstalling the latest version of glibc from source:\n"
158+
# cd $HOME/
159+
# mkdir -p softwares
160+
# cd softwares
161+
# echo "Current work directory:"
162+
# pwd
163+
# wget --no-check-certificate https://ftp.gnu.org/gnu/glibc/glibc-2.27.tar.gz
164+
# tar -xzvf glibc-2.27.tar.gz
165+
# # git clone https://sourceware.org/git/glibc.git
166+
# cd glibc-2.27
167+
# # git checkout master
168+
# mkdir build
169+
# cd build
170+
# ../configure --prefix=$HOME/installed/glibc-2.27
171+
# # ../configure --prefix=$HOME/installed/glibc-latest
172+
# make
173+
# make install
174+
# export LD_LIBRARY_PATH=$HOME/installed/glibc-2.27/lib:$LD_LIBRARY_PATH
175+
# # export LD_LIBRARY_PATH=$HOME/installed/glibc-latest/lib:$LD_LIBRARY_PATH
176+
# printf "\n"
177+
# # Verify that glibc has been installed:
178+
# printf "\nThe new version of glibc installed:\n"
179+
# rpm -q glibc
180+
# printf "\n"
181+
# printf "\ncd back:\n"
182+
# cd $GITHUB_WORKSPACE
183+
# echo "Current work directory:"
184+
# pwd
185+
186+
- name: Set up Python ${{ matrix.python-version }}
187+
uses: actions/setup-python@v4
188+
with:
189+
python-version: '/usr/local/bin/python3.8'
190+
# python-version: ${{ matrix.python-version }}
191+
# cache: 'pip' # caching pip dependencies
192+
193+
- name: Check installed Python and pip
194+
run: |
195+
python --version
196+
pip --version
197+
find / -name pip 2>/dev/null
198+
199+
- name: Install dependencies
200+
run: |
201+
python -m pip install --upgrade pip
202+
pip install Cython pytest
203+
pip install codecov coverage pytest-cov
204+
sudo apt-get -y install gfortran liblapack-dev
205+
pip install -r requirements.txt
206+
pip install wheel
207+
208+
- name: Build and test
209+
run: |
210+
python setup.py bdist_wheel
211+
pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ged/
212+
# pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py --ignore=gklearn/tests/test_graphkernels.py
213+
214+
- name: Run code coverage
215+
run: |
216+
codecov
217+
218+
# - name: Publish distribution 📦 to Test PyPI
219+
# if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-latest'
220+
# uses: pypa/gh-action-pypi-publish@release/v1
221+
# with:
222+
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
223+
# repository-url: https://test.pypi.org/legacy/
224+
#
225+
# - name: Publish distribution 📦 to PyPI
226+
# if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-latest'
227+
# uses: pypa/gh-action-pypi-publish@release/v1
228+
# with:
229+
# user: __token__
230+
# password: ${{ secrets.PYPI_API_TOKEN }}
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
#name: he
2+
#
3+
#on:
4+
# push:
5+
# branches: [main]
6+
# pull_request:
7+
# branches: [main]
8+
#
9+
#jobs:
10+
# build:
11+
#
12+
# runs-on: ${{ matrix.os }}
13+
#
14+
# strategy:
15+
# matrix:
16+
# os: [ubuntu-latest, macos-latest, windows-latest]
17+
# python-version: [3.6, 3.7, 3.8, 3.9]
18+
#
19+
# steps:
20+
# - uses: actions/checkout@v2
21+
#
22+
# - name: Set up Python ${{ matrix.python-version }}
23+
# uses: actions/setup-python@v2
24+
# with:
25+
# python-version: ${{ matrix.python-version }}
26+
#
27+
# - name: Install dependencies
28+
# run: |
29+
# python -m pip install --upgrade pip
30+
# pip install Cython pytest
31+
#
32+
# - name: Build and test
33+
# run: |
34+
# python setup.py build_ext --inplace
35+
# pytest
36+
37+
38+
name: graphkit-learn
39+
40+
run-name: ${{ github.actor }} is testing graphkit-learn out GitHub Actions 🚀
41+
42+
on: [ push, pull_request ]
43+
44+
jobs:
45+
CI-Ubuntu:
46+
47+
runs-on: ${{ matrix.os }}
48+
49+
strategy:
50+
matrix:
51+
# os: [ubuntu-latest, macos-latest, windows-latest]
52+
os: [ubuntu-latest]
53+
python-version: ["3.8", "3.9", "3.10"]
54+
55+
steps:
56+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
57+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
58+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
59+
60+
- name: Check out repository code
61+
uses: actions/checkout@v3
62+
63+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
64+
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
65+
- run: echo "🪵 The root directory of the file system is ${{ github.workspace }}."
66+
- name: List files in the repository
67+
run: |
68+
pwd
69+
ls /
70+
echo "The files contained in the repository (github.workspace):"
71+
ls ${{ github.workspace }}
72+
- run: echo "🍏 This job's status is ${{ job.status }}."
73+
74+
- name: Set up Python ${{ matrix.python-version }}
75+
uses: actions/setup-python@v4
76+
with:
77+
python-version: ${{ matrix.python-version }}
78+
cache: 'pip' # caching pip dependencies
79+
80+
- name: Install dependencies
81+
run: |
82+
python -m pip install --upgrade pip
83+
pip install Cython pytest
84+
pip install codecov coverage pytest-cov
85+
sudo apt-get -y install gfortran liblapack-dev
86+
pip install -r requirements.txt
87+
pip install wheel
88+
89+
- name: Build and test
90+
run: |
91+
# python setup.py bdist_wheel
92+
python setup.py install
93+
# pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ged/
94+
pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ --ignore=gklearn/tests/test_median_preimage_generator.py --ignore=gklearn/tests/test_graphkernels.py
95+
96+
- name: Run code coverage
97+
run: |
98+
codecov
99+
100+
- name: Publish distribution 📦 to Test PyPI
101+
if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-latest'
102+
uses: pypa/gh-action-pypi-publish@release/v1
103+
with:
104+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
105+
repository-url: https://test.pypi.org/legacy/
106+
107+
- name: Publish distribution 📦 to PyPI
108+
if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-latest'
109+
uses: pypa/gh-action-pypi-publish@release/v1
110+
with:
111+
user: __token__
112+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)