-
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.
* initial commit * new: controller example in README * new: `track_adb`, `track_cug` * cleanup: progress tracker * revive branch with more cleanup build workflow will most likely hang due to dead runners * temp: use `housekeeping` branch name * cleanup notebook * cleanup notebook (again) * checkpoint * checkpoint * checkpoint * bump * remove: imdb dump too large for test purposes * fix rich color * fix tests * Update test_adapter.py * Update test_adapter.py * update tests * update notebooks * fix arangorestore * fix arangorestore (2) * fix isort * cleanup * new: coveralls * more cleanup * Update README.md * bump * update notebook * cleanup workflows * lock python-arango * update release action * Update README.md * Update README.md * Update README.md * Update README.md * migrate to `pyproject.toml` * fix lint * Update config.yml * add `tests` to `mypy` * optimize: `__process_adb_vertex` * update `prepare_adb_vertex` docstring
- Loading branch information
Showing
25 changed files
with
6,254 additions
and
2,451 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 |
---|---|---|
|
@@ -4,7 +4,13 @@ workflows: | |
python_ci: | ||
jobs: | ||
- lint | ||
- test | ||
- test: | ||
matrix: | ||
parameters: | ||
python_version: ["3.9", "3.10"] | ||
|
||
# orbs: | ||
# coveralls: coveralls/[email protected] | ||
|
||
jobs: | ||
lint: | ||
|
@@ -13,58 +19,78 @@ jobs: | |
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 flake8 | ||
command: flake8 ./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 | ||
name: Run mypy | ||
command: mypy ./adbcug_adapter ./tests | ||
|
||
- save_cache: | ||
key: pip-and-local-cache | ||
paths: | ||
- ~/.local | ||
- ~/.cache/pip | ||
|
||
test: | ||
parameters: | ||
python_version: | ||
type: string | ||
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 | ||
name: Setup Python | ||
command: | | ||
pyenv install << parameters.python_version >> | ||
pyenv global << parameters.python_version >> | ||
- 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 | ||
command: pytest --cov=adbcug_adapter --cov-report xml --cov-report term-missing -v --color=yes --no-cov-on-fail --code-highlight=yes --cov-fail-under=75 | ||
|
||
# - coveralls/upload |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.