-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add .circleci/config.yml * Add .circleci/config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * lock lint packages * fix black * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * bump * Update conftest.py * Update adapter.py
- Loading branch information
Showing
6 changed files
with
99 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
version: 2.1 | ||
|
||
workflows: | ||
python_ci: | ||
jobs: | ||
- lint | ||
- test | ||
|
||
jobs: | ||
lint: | ||
machine: | ||
image: linux-cuda-11:default | ||
resource_class: gpu.nvidia.small.multi | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: pip-and-local-cache | ||
- run: | ||
name: Setup Python 3.10 | ||
command: pyenv install 3.10 && pyenv global 3.10 | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
pip install --upgrade pip setuptools setuptools-scm wheel | ||
pip install --extra-index-url=https://pypi.nvidia.com cudf-cu11 cugraph-cu11 | ||
pip install ".[dev]" | ||
- run: | ||
name: Run black | ||
command: black --check --verbose --diff --color --config=pyproject.toml ./adbcug_adapter ./tests/ | ||
- run: | ||
name: Run isort | ||
command: isort --check ./adbcug_adapter ./tests/ | ||
# - run: | ||
# name: Run mypy | ||
# command: mypy ./adbcug_adapter ./tests | ||
- run: | ||
name: Run flake8 | ||
command: flake8 ./adbcug_adapter ./tests | ||
- save_cache: | ||
key: pip-and-local-cache | ||
paths: | ||
- ~/.local | ||
- ~/.cache/pip | ||
|
||
test: | ||
machine: | ||
image: linux-cuda-11:default | ||
resource_class: gpu.nvidia.small.multi | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: pip-and-local-cache | ||
- run: | ||
name: Setup Python 3.10 | ||
command: pyenv install 3.10 && pyenv global 3.10 | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
pip install --upgrade pip setuptools setuptools-scm wheel | ||
pip install --extra-index-url=https://pypi.nvidia.com cudf-cu11 cugraph-cu11 | ||
pip install ".[dev]" | ||
- run: | ||
name: Setup Docker | ||
command: | | ||
sudo systemctl start docker | ||
docker create --name adb -p 8529:8529 -e ARANGO_ROOT_PASSWORD= arangodb/arangodb | ||
docker start adb | ||
- run: | ||
name: Run PyTest | ||
command: pytest --cov=adbcug_adapter --cov-report xml --cov-report term-missing -v --color=yes --no-cov-on-fail --code-highlight=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.