Skip to content

Commit

Permalink
CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
apetenchea committed Mar 14, 2024
1 parent bf43e84 commit 68fb226
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 2.1

workflows:
ci:
jobs:
- lint

jobs:
lint:
docker:
- image: python:latest
steps:
- checkout
- run:
name: Install Dependencies
command: pip install .[dev]
- run:
name: Run black
command: black --check --verbose --diff --color --config=pyproject.toml ./arangoasync ./tests/
- run:
name: Run flake8
command: flake8 ./arangoasync ./tests
- run:
name: Run isort
command: isort --check ./arangoasync ./tests
- run:
name: Run mypy
command: mypy ./arangoasync
23 changes: 23 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CodeQL

on:
pull_request:
branches: [main]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

permissions:
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else
conf_file="${setup}"
fi

docker run -d \
docker run -d --rm \
--name arango \
-p 8528:8528 \
-p 8529:8529 \
Expand Down

0 comments on commit 68fb226

Please sign in to comment.