Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.2.x #53

Merged
merged 87 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
6f1cb8c
[Enhancement] Update GEDLIBPY setup.py.
jajupmochi Apr 20, 2023
ba74fb4
[Major Features] Compile and install GEDLIB module automatically.
jajupmochi Apr 20, 2023
b83329a
[CI] Update .gitignore.
jajupmochi Apr 20, 2023
261f3f3
[CI] List generated files in GEDLIBPY setup.py.
jajupmochi Apr 20, 2023
1e9b947
[CI] Add GEDLIB compilation and installation while installing GEDLIBPY.
jajupmochi Apr 20, 2023
fc49a26
[Fix] Use the same Python as the parent processes while installing.
jajupmochi Apr 20, 2023
1812c7d
[Refactor] Remove gedlibpy.cpp.
jajupmochi Apr 20, 2023
a8ac7a4
[Test] Add a test to (C++) GEDLIB module.
jajupmochi Apr 24, 2023
dd8cb28
[Fix] Fix a bug in test_gedlib.py.
jajupmochi Apr 24, 2023
b712aad
[CI] Fix a bug in github-actions.yml.
jajupmochi Apr 24, 2023
e893103
[CI] Add CI test on CentOS.
jajupmochi Apr 24, 2023
39abd13
[CI] Fix the misspelled event name "pull_request".
jajupmochi Apr 24, 2023
dbd7cb1
[CI] Fix the GitHub Actions on centos 7.
jajupmochi Apr 24, 2023
b6c5015
[CI] Try to fix the GitHub Actions dir not found error on centos 7.
jajupmochi Apr 24, 2023
fc7e8d7
[CI] Try to fix the GitHub Actions dir not found error on centos 7.
jajupmochi Apr 24, 2023
ac66b8f
[CI] Try to fix the GitHub Actions dir not found error on centos 7.
jajupmochi Apr 24, 2023
c894c47
[CI] Try to fix the GitHub Actions dir not found error on centos 7.
jajupmochi Apr 24, 2023
0769022
[CI] Try to fix the GitHub Actions dir not found error on centos 7.
jajupmochi Apr 24, 2023
bf6af08
[CI] Try to fix the GitHub Actions dir not found error on centos 7.
jajupmochi Apr 24, 2023
a790887
[CI] Try to fix the GitHub Actions dir not found error on centos 7.
jajupmochi Apr 24, 2023
264bc4d
[CI] Try to fix the GitHub Actions dir not found error on centos 7.
jajupmochi Apr 24, 2023
9b5e5b8
[CI] Try to fix the GitHub Actions dir not found error on centos 7.
jajupmochi Apr 24, 2023
92220dc
[CI] Fix the GitHub Actions CentOS 7 error: Unable to locate executab…
jajupmochi Apr 24, 2023
cda8f44
[CI] Fix the GitHub Actions CentOS 7 error: Unable to locate executab…
jajupmochi Apr 24, 2023
e66e36c
[CI] Fix the GitHub Actions CentOS 7 error: Unable to locate executab…
jajupmochi Apr 24, 2023
e562c25
[CI] Fix the GitHub Actions CentOS 7 error: Unable to locate executab…
jajupmochi Apr 24, 2023
d30e32d
[CI] Fix the GitHub Actions CentOS 7 error: Unable to locate executab…
jajupmochi Apr 24, 2023
59c4073
[CI] Fix the GitHub Actions CentOS 7 error: Unable to locate executab…
jajupmochi Apr 24, 2023
a495fb1
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
ce08dd6
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
a4d63f4
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
dee7434
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
1ccd35d
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
07c4c4d
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
f50b63a
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
8728b12
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
6e9931c
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
d6ace13
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
b68b968
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
42ba205
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
d3e121f
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
064eaf9
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
c4e97d8
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
31c68a9
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
80201c3
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
5141d5b
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
7896389
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
af594ac
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
9d9b663
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
2aff746
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
2df11b3
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
de8fe3f
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
65b9e6e
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
8d1415f
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
e180ca7
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
3dce653
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
edc59cc
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
10e6c94
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
ab96761
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
d089e2d
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
e41e488
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
17764df
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
6f64214
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
8da101c
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
116ddd1
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
da0911d
[CI] Fix the GitHub Actions CentOS 7 error: python: /lib64/libc.so.6:…
jajupmochi Apr 24, 2023
b44bf44
[Tests] Update test_gedlib.py.
jajupmochi Apr 27, 2023
a99494e
[Tests] Update test_gedlib.py.
jajupmochi Apr 27, 2023
98f0f95
[Refactor] Update .gitignore to remove gklearn/gedlib/include/.
jajupmochi Apr 27, 2023
eb550ad
[Refactor] Update .gitignore to remove gklearn/gedlib/lib/.
jajupmochi Apr 27, 2023
7456bfb
[Refactor] Update .gitignore to include PyCharm .idea/ settings.
jajupmochi Apr 27, 2023
61a516e
[Refactor] Update .gitignore to exclude .pytest_cache.
jajupmochi Apr 27, 2023
65abcc7
[Refactor] Add some inversioned files.
jajupmochi Apr 27, 2023
77ef850
[Refactor] Update gedlibpy module to remove C++ includes and libs. Th…
jajupmochi Apr 27, 2023
3f564a2
[Enhancement] Update gedlibpy setup.py to copy-paste includes and lib…
jajupmochi Apr 27, 2023
bffccee
[Enhancement] Update gedlibpy setup.py to copy-paste includes and lib…
jajupmochi Apr 27, 2023
bd17c31
[Enhancement] Update gedlibpy setup.py to copy-paste includes and lib…
jajupmochi Apr 27, 2023
26c3c24
[Enhancement] Update gedlibpy setup.py to copy-paste includes and lib…
jajupmochi Apr 27, 2023
7662ae0
[Enhancement] Update gedlibpy setup.py to deal with glibc.
jajupmochi Apr 28, 2023
5885b93
[Enhancement] Update gedlibpy setup.py to deal with glibc.
jajupmochi Apr 28, 2023
98f06bf
[Refactor] Clean gedlibpy directory.
jajupmochi Apr 28, 2023
47a118b
[Enhancement] Add argument options to setup.py.
jajupmochi Apr 28, 2023
b767170
[Enhancement] Add argument options to setup.py.
jajupmochi Apr 28, 2023
59b00a9
[Enhancement] Add argument options to setup.py.
jajupmochi Apr 28, 2023
7cd7d19
[Enhancement] Add argument options to setup.py.
jajupmochi Apr 28, 2023
6ca7072
[Enhancement] Depress argument options to setup.py.
jajupmochi Apr 28, 2023
08c5a41
[CI] Restore the .yml file.
jajupmochi Apr 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
230 changes: 230 additions & 0 deletions .github/workflows/github-actions-centos.yml_tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
name: graphkit-learn

run-name: ${{ github.actor }} is testing graphkit-learn out GitHub Actions 🚀

on: [ push, pull_request ]

jobs:
CI-CentOS:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: [ "3.8.6" ] # , "3.9", "3.10" ]
container: [ "centos:latest" ] # [ "centos:7" ]

container:
image: ${{ matrix.container }}

steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

- name: Check out repository code
uses: actions/checkout@v3

- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- run: echo "🪵 The root directory of the checked-out repository is:"
- run: echo $GITHUB_WORKSPACE
- name: List files in the repository
run: |
pwd
ls /
printf "\nThe files contained in the repository (GITHUB_WORKSPACE):\n"
ls $GITHUB_WORKSPACE
- run: echo "🍏 This job's status is ${{ job.status }}."

- name: Install Python
run: |
yum -y install python38

# - name: Install system-level dependencies
# run: |
# #%% lsb-core is required for actions/setup-python@v4:
# printf "\nInstalling redhat-lsb-core:\n"
# yum install -y redhat-lsb-core
# printf "\n"
# printf "\nInstalling dependencies for installing make and glibc:\n"
# yum install -y git gcc make wget which alias

# - name: Upgrade make for installing glibc
# run: |
# #%% Install a higher version of make: (The latest version on CentOS 7
# #%% is 3.82.)
# # Determine the current version of make that is installed:
# printf "\nCurrent version of make installed:\n"
# rpm -q make
# printf "\n"
# # Check if a newer version of make is available in the official CentOS
# # repositories:
# printf "\nThe latest version of make available on the current system:\n"
# yum list make
# printf "\n"
# printf "\nInstalling make 4.4 from source:\n"
# cd $HOME
# mkdir -p softwares
# cd softwares
# echo "Current work directory:"
# pwd
# wget --no-check-certificate https://ftp.gnu.org/gnu/make/make-4.4.tar.gz
# tar -xzvf make-4.4.tar.gz
# cd make-4.4
# ./configure --prefix=$HOME/installed/make-4.4
# make && make install
# echo 'export PATH=$HOME/installed/make-4.4/bin:$PATH' >> ~/.bashrc
# source ~/.bashrc
# echo "Current PATH:"
# echo $PATH
# printf "\n"
# # Verify that make has been installed:
# printf "\nThe new version of make installed:\n"
# rpm -q make
# which make
# alias
# ls -l $(which make)
# printf "\n"
# printf "\ncd back:\n"
# cd $GITHUB_WORKSPACE
# echo "Current work directory:"
# pwd

# - name: Upgrade gcc for installing glibc
# run: |
# #%% Install a higher version of gcc: (The latest version on CentOS 7
# #%% is 4.8.5.)
# # Determine the current version of gcc that is installed:
# printf "\nCurrent version of gcc installed:\n"
# rpm -q gcc
# printf "\n"
# # Check if a newer version of gcc is available in the official CentOS
# # repositories:
# printf "\nThe latest version of gcc available on the current system:\n"
# yum list gcc
# printf "\n"
# printf "\nInstalling the required dependencies for installing gcc:\n"
# yum install -y bzip2 gcc-c++ gmp-devel mpfr-devel libmpc-devel
# printf "\n"
# printf "\nInstalling the latest version of gcc from source:\n"
# cd $HOME/
# mkdir -p softwares
# cd softwares
# echo "Current work directory:"
# pwd
# wget --no-check-certificate https://ftp.gnu.org/gnu/gcc/gcc-7.4.0/gcc-7.4.0.tar.gz
# tar -xzvf gcc-7.4.0.tar.gz
# cd gcc-7.4.0
# # ./contrib/download_prerequisites # Solve the gmp, mpfr, mpc problems.
# mkdir build
# cd build
# ../configure --prefix=$HOME/installed/gcc-7.4.0 -enable-languages=c,c++ -disable-multilib
# make -j$(nproc)
# make install
# export PATH=$HOME/installed/gcc-7.4.0/bin:$PATH
# export LD_LIBRARY_PATH=$HOME/installed/gcc-7.4.0/lib64:$HOME/installed/gcc-7.4.0/lib:$LD_LIBRARY_PATH
# export LIBRARY_PATH=$HOME/installed/gcc-7.4.0/lib64:$HOME/installed/gcc-7.4.0/lib:$LIBRARY_PATH
# printf "\n"
# # Verify that gcc has been installed:
# printf "\nThe new version of gcc installed:\n"
# rpm -q gcc
# gcc -v
# which gcc
# ls -l $(which gcc)
# printf "\n"
# printf "\ncd back:\n"
# cd $GITHUB_WORKSPACE
# echo "Current work directory:"
# pwd
#
# - name: Upgrade glibc
# run: |
# #%% Install a higher version of glibc: (The latest version on CentOS 7
# #%% is 2.17, while at least 2.27 is required for the latest Python 3.8.)
# # Determine the current version of glibc that is installed:
# printf "\nCurrent version of glibc installed:\n"
# rpm -q glibc
# printf "\n"
# # Check if a newer version of glibc is available in the official CentOS
# # repositories:
# printf "\nThe latest version of glibc available on the current system:\n"
# yum list glibc
# printf "\n"
# printf "\nInstalling the required dependencies for installing glibc:\n"
# yum install -y bison flex gawk gettext-devel texinfo
# printf "\n"
# printf "\nInstalling the latest version of glibc from source:\n"
# cd $HOME/
# mkdir -p softwares
# cd softwares
# echo "Current work directory:"
# pwd
# wget --no-check-certificate https://ftp.gnu.org/gnu/glibc/glibc-2.27.tar.gz
# tar -xzvf glibc-2.27.tar.gz
# # git clone https://sourceware.org/git/glibc.git
# cd glibc-2.27
# # git checkout master
# mkdir build
# cd build
# ../configure --prefix=$HOME/installed/glibc-2.27
# # ../configure --prefix=$HOME/installed/glibc-latest
# make
# make install
# export LD_LIBRARY_PATH=$HOME/installed/glibc-2.27/lib:$LD_LIBRARY_PATH
# # export LD_LIBRARY_PATH=$HOME/installed/glibc-latest/lib:$LD_LIBRARY_PATH
# printf "\n"
# # Verify that glibc has been installed:
# printf "\nThe new version of glibc installed:\n"
# rpm -q glibc
# printf "\n"
# printf "\ncd back:\n"
# cd $GITHUB_WORKSPACE
# echo "Current work directory:"
# pwd

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '/usr/local/bin/python3.8'
# python-version: ${{ matrix.python-version }}
# cache: 'pip' # caching pip dependencies

- name: Check installed Python and pip
run: |
python --version
pip --version
find / -name pip 2>/dev/null

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Cython pytest
pip install codecov coverage pytest-cov
sudo apt-get -y install gfortran liblapack-dev
pip install -r requirements.txt
pip install wheel

- name: Build and test
run: |
python setup.py bdist_wheel
pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ged/
# 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

- name: Run code coverage
run: |
codecov

# - name: Publish distribution 📦 to Test PyPI
# if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-latest'
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
#
# - name: Publish distribution 📦 to PyPI
# if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-latest'
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
112 changes: 112 additions & 0 deletions .github/workflows/github-actions-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
#name: he
#
#on:
# push:
# branches: [main]
# pull_request:
# branches: [main]
#
#jobs:
# build:
#
# runs-on: ${{ matrix.os }}
#
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# python-version: [3.6, 3.7, 3.8, 3.9]
#
# steps:
# - uses: actions/checkout@v2
#
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
#
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install Cython pytest
#
# - name: Build and test
# run: |
# python setup.py build_ext --inplace
# pytest


name: graphkit-learn

run-name: ${{ github.actor }} is testing graphkit-learn out GitHub Actions 🚀

on: [ push, pull_request ]

jobs:
CI-Ubuntu:

runs-on: ${{ matrix.os }}

strategy:
matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10"]

steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

- name: Check out repository code
uses: actions/checkout@v3

- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- run: echo "🪵 The root directory of the file system is ${{ github.workspace }}."
- name: List files in the repository
run: |
pwd
ls /
echo "The files contained in the repository (github.workspace):"
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Cython pytest
pip install codecov coverage pytest-cov
sudo apt-get -y install gfortran liblapack-dev
pip install -r requirements.txt
pip install wheel

- name: Build and test
run: |
# python setup.py bdist_wheel
python setup.py install
# pytest -v --cov-config=.coveragerc --cov-report term --cov=gklearn gklearn/tests/ged/
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

- name: Run code coverage
run: |
codecov

- name: Publish distribution 📦 to Test PyPI
if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-latest'
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/

- name: Publish distribution 📦 to PyPI
if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-latest'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
Loading