diff --git a/.circleci/config.yml b/.circleci/config.yml index 6d1f929..a3b9913 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,29 +19,37 @@ 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 + - save_cache: key: pip-and-local-cache paths: @@ -57,26 +65,32 @@ jobs: resource_class: gpu.nvidia.small.multi steps: - checkout + - restore_cache: key: pip-and-local-cache + - run: 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 --cov-fail-under=75 + # - coveralls/upload \ No newline at end of file diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 900aa9c..1a9688d 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -37,7 +37,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9774930..73b81f3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,31 +3,24 @@ on: workflow_dispatch: release: types: [published] -env: - PACKAGE_DIR: adbcug_adapter - TESTS_DIR: tests jobs: release: runs-on: ubuntu-latest - defaults: - run: - shell: bash -l {0} - name: release + name: Release package steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - name: Fetch complete history for all tags and branches run: git fetch --prune --unshallow - - name: Setup python - uses: actions/setup-python@v2 + + - name: Setup Python + uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.10" - - name: Install packages + - name: Install release packages run: pip install setuptools wheel twine setuptools-scm[toml] - - name: Remove (old) distribution - run: rm -rf dist - - name: Build distribution run: python setup.py sdist bdist_wheel @@ -46,9 +39,9 @@ jobs: changelog: needs: release runs-on: ubuntu-latest - name: changelog + name: Update Changelog steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -60,10 +53,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Setup python - uses: actions/setup-python@v2 + - name: Setup Python + uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.10" - name: Install release packages run: pip install wheel gitchangelog pystache