Skip to content

[GA-160] remove github action workflow, add circleci instead / Add .circleci/config.yml #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
version: 2.1

executors:
python-executor:
docker:
- image: circleci/python:3.10
environment:
PACKAGE_DIR: nx_arangodb
TESTS_DIR: tests

machine-executor:
machine:
image: ubuntu-2404:2024.05.1

jobs:
lint:
executor: python-executor
steps:
- checkout

- run:
name: Setup pip
command: python -m pip install --upgrade pip setuptools wheel

- run:
name: Install packages
command: pip install .[dev]

- run:
name: Run black
command: black --check --verbose --diff --color $PACKAGE_DIR $TESTS_DIR

- run:
name: Run flake8
command: flake8 $PACKAGE_DIR $TESTS_DIR

- run:
name: Run isort
command: isort --check --profile=black $PACKAGE_DIR $TESTS_DIR

- run:
name: Run mypy
command: mypy $PACKAGE_DIR $TESTS_DIR

test:
executor: machine-executor
steps:
- checkout

- run:
name: Set up ArangoDB
command: |
chmod +x starter.sh
./starter.sh

- run:
name: Setup Python
command: |
pyenv --version
pyenv install -f 3.10
pyenv global 3.10

- run:
name: Setup pip
command: python -m pip install --upgrade pip setuptools wheel

- run:
name: Install packages
command: pip install .[dev]

- run:
name: Install Phenolrs (temporary solution)
command: pip install ./phenolrs-0.4.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

- run:
name: Run local tests
command: pytest tests/test.py

- run:
name: Run NetworkX tests
command: ./run_nx_tests.sh

workflows:
version: 2
build:
jobs:
- lint
- test
73 changes: 0 additions & 73 deletions .github/workflows/build.yaml

This file was deleted.