From 5ab1b8f323ce524dbf6b848ae28696ce6a8287d1 Mon Sep 17 00:00:00 2001 From: gyzhou2000 Date: Sun, 14 Jul 2024 10:12:36 +0800 Subject: [PATCH] update --- .circleci/config.yml | 62 ------------------------- .circleci/requirements.txt | 14 ------ .github/workflows/test_push.yml | 2 +- .github/workflows/test_pypi_package.yml | 2 +- docs/source/notes/installation.rst | 4 +- 5 files changed, 4 insertions(+), 80 deletions(-) delete mode 100644 .circleci/config.yml delete mode 100644 .circleci/requirements.txt diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 792c4d52..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,62 +0,0 @@ -# Use the latest 2.1 version of CircleCI pipeline process engine. -# See: https://circleci.com/docs/2.0/configuration-reference -version: 2.1 - -# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects. -# See: https://circleci.com/docs/2.0/orb-intro/ -orbs: - # The python orb contains a set of prepackaged CircleCI configuration you can use repeatedly in your configuration files - # Orb commands and jobs help you with common scripting around a language/tool - # so you dont have to copy and paste it everywhere. - # See the orb documentation here: https://circleci.com/developer/orbs/orb/circleci/python - python: circleci/python@1.5.0 - -# Define a job to be invoked later in a workflow. -# See: https://circleci.com/docs/2.0/configuration-reference/#jobs -jobs: - build-and-test: # This is the name of the job, feel free to change it to better match what you're trying to do! - # These next lines defines a Docker executors: https://circleci.com/docs/2.0/executor-types/ - # You can specify an image from Dockerhub or use one of the convenience images from CircleCI's Developer Hub - # A list of available CircleCI Docker convenience images are available here: https://circleci.com/developer/images/image/cimg/python - # The executor is the environment in which the steps below will be executed - below will use a python 3.10.2 container - # Change the version below to your required version of python - docker: - - image: cimg/python:3.10.2 - # Checkout the code as the first step. This is a dedicated CircleCI step. - # The python orb's install-packages step will install the dependencies from a Pipfile via Pipenv by default. - # Here we're making sure we use just use the system-wide pip. By default it uses the project root's requirements.txt. - # Then run your tests! - # CircleCI will report the results back to your VCS provider. - steps: - - checkout - - run: git submodule sync - - run: git submodule update --init - - python/install-packages: - pkg-manager: pip - app-dir: ~/project/.circleci/ # If you're requirements.txt isn't in the root directory. - # pip-dependency-file: test-requirements.txt # if you have a different name for your requirements file, maybe one that combines your runtime and test requirements. - - run: - command: pip install torch==1.12.1+cpu torchvision==0.13.1+cpu torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cpu - - run: - command: pip install llvmlite - - run: - command: python setup.py install - - run: - name: Run TF tests - # This assumes pytest is installed via the install-package step above - command: TL_BACKEND=tensorflow pytest - - run: - name: Run TH tests - command: TL_BACKEND=torch pytest - - run: - name: Run PD tests - command: TL_BACKEND=paddle pytest - - -# Invoke jobs via workflows -# See: https://circleci.com/docs/2.0/configuration-reference/#workflows -workflows: - sample: # This is the name of the workflow, feel free to change it to better match your workflow. - # Inside the workflow, you define the jobs you want to run. - jobs: - - build-and-test diff --git a/.circleci/requirements.txt b/.circleci/requirements.txt deleted file mode 100644 index b90439e7..00000000 --- a/.circleci/requirements.txt +++ /dev/null @@ -1,14 +0,0 @@ -git+https://github.com/dddg617/TensorLayerX.git@nightly -numpy<=1.23.5 -scipy -tensorflow==2.11.0 -paddlepaddle==2.3.2 -pytest -numba -tqdm -rich -django -pyparsing -paddlenlp -pybind11 -protobuf==3.19.6 \ No newline at end of file diff --git a/.github/workflows/test_push.yml b/.github/workflows/test_push.yml index ea1a8842..9f9e2afa 100644 --- a/.github/workflows/test_push.yml +++ b/.github/workflows/test_push.yml @@ -24,7 +24,7 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install -r .circleci/requirements.txt + pip install -r requirements.txt - name: Install Other dependencies Package run: | diff --git a/.github/workflows/test_pypi_package.yml b/.github/workflows/test_pypi_package.yml index 20c0c953..962df92e 100644 --- a/.github/workflows/test_pypi_package.yml +++ b/.github/workflows/test_pypi_package.yml @@ -20,7 +20,7 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install -r .circleci/requirements.txt + pip install -r requirements.txt - name: Install TensorLayerx run: | diff --git a/docs/source/notes/installation.rst b/docs/source/notes/installation.rst index e2fd55ce..0f07b0be 100644 --- a/docs/source/notes/installation.rst +++ b/docs/source/notes/installation.rst @@ -60,7 +60,7 @@ Install from pip .. code:: bash - pip install gammgl + pip install gammagl Install from source ------------------- @@ -114,7 +114,7 @@ Install from source .. code:: bash - python setup.py bulid_ext --inplace + python setup.py build_ext --inplace How to Run ----------