Skip to content

Commit

Permalink
cleanup workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Oct 19, 2023
1 parent a3e56a3 commit 2576e9a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
33 changes: 13 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 2576e9a

Please sign in to comment.