Skip to content
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
8 changes: 3 additions & 5 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: CodeQL
on:
pull_request:
branches: [main]
schedule:
- cron: '21 2 * * 3'

jobs:
analyze:
Expand All @@ -16,10 +14,10 @@ jobs:

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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v4
73 changes: 3 additions & 70 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,71 +3,15 @@ name: Docs
on:
pull_request:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: Debug with tmate
required: false
default: false

jobs:
# This has been migrated to CircleCI
# test:
# runs-on: ubuntu-latest

# strategy:
# fail-fast: false
# matrix:
# python_version: ["3.10"] #["3.8", "3.9", "3.10", "3.11", "3.12"]
# arangodb_config: ["single", "cluster"]
# arangodb_license: ["community", "enterprise"]
# arangodb_version: ["3.10.10", "3.11.4", "latest"]

# name: Test (${{ matrix.python_version }}:${{ matrix.arangodb_config }}:${{ matrix.arangodb_license }}:${{ matrix.arangodb_version }})

# steps:
# - name: Checkout code
# uses: actions/checkout@v4

# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python_version }}

# - name: Setup ArangoDB
# run: |
# chmod +x starter.sh
# ./starter.sh ${{ matrix.arangodb_config }} ${{ matrix.arangodb_license }} ${{ matrix.arangodb_version }}

# - name: Install Dependencies
# run: pip install -e .[dev]

# - name: List Docker Containers
# run: docker ps -a

# - name: Pytest
# run: |
# args=("--host" "localhost" "--port=8529")

# if [ ${{ matrix.arangodb_config }} = "cluster" ]; then
# args+=("--cluster" "--port=8539" "--port=8549")
# fi

# if [ ${{ matrix.arangodb_license }} = "enterprise" ]; then
# args+=("--enterprise")
# fi

# echo "Running pytest with args: ${args[@]}"
# pytest --cov=arango --cov-report=xml "${args[@]}"

docs:
runs-on: ubuntu-latest

name: Docs

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Fetch all tags and branches
run: git fetch --prune --unshallow
Expand All @@ -81,23 +25,12 @@ jobs:
run: docker start arango

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v7
with:
python-version: '3.10'

- name: Debug with tmate
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

- name: Run pre-commit checks
uses: pre-commit/action@v3.0.0
python-version: '3.12'

- name: Install dependencies
run: pip install .[dev]

- name: Run Sphinx doctest
run: python -m sphinx -b doctest docs docs/_build

# No longer needed as this is handled by Read the Docs
#- name: Generate Sphinx HTML
# run: python -m sphinx -b html -W docs docs/_build
24 changes: 6 additions & 18 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,21 @@ name: Upload to PyPI
on:
release:
types: [published]
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: Debug with tmate
required: false
default: false

jobs:
upload:
runs-on: ubuntu-latest

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

- name: Fetch all tags and branches
run: git fetch --prune --unshallow

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/checkout@v7
with:
python-version: "3.10"
fetch-depth: 0
fetch-tags: true

- name: Debug with tmate
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
- uses: actions/setup-python@v7
with:
python-version: "3.12"

- name: Install dependencies
run: |
Expand Down
Loading