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
20 changes: 9 additions & 11 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: Check code style
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
paths:
- "python-wrapper/**" # python code + its resources
branches: [ "main" ]
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -27,15 +27,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v6
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: pyproject.toml
- run: pip install ".[dev]"
- run: pip install ".[pandas]"
- run: pip install ".[gds]"
- run: pip install ".[snowflake]"
python-version: "3.11"
enable-cache: true
- run: uv venv
- run: uv pip install ".[dev, pandas, gds, snowflake]"

- name: Check code style
run: cd ${GITHUB_WORKSPACE} && ./scripts/checkstyle.sh
run: source .venv/bin/activate && cd ${GITHUB_WORKSPACE} && ./scripts/checkstyle.sh
17 changes: 7 additions & 10 deletions .github/workflows/gds-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Run GDS integration tests
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
branches: ["main"]
# Skip on this check PR to reduce number of AuraDS instances created

# Allows you to run this workflow manually from the Actions tab
Expand All @@ -28,19 +28,16 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v6
with:
python-version: "3.12"
cache: 'pip'
cache-dependency-path: pyproject.toml
- run: pip install ".[dev]"
- run: pip install ".[pandas]"
- run: pip install ".[gds]"
- run: pip install ".[snowflake]"
python-version: "3.11"
enable-cache: true
- run: uv sync --extra dev --extra pandas --extra neo4j --extra gds --extra snowflake

- name: Run tests
env:
AURA_API_CLIENT_ID: 4V1HYCYEeoU4dSxThKnBeLvE2U4hSphx
AURA_API_CLIENT_SECRET: ${{ secrets.AURA_API_CLIENT_SECRET }}
AURA_API_TENANT_ID: eee7ec28-6b1a-5286-8e3a-3362cc1c4c78
run: pytest tests/ --include-neo4j-and-gds
run: uv run pytest tests/ --include-neo4j-and-gds
10 changes: 4 additions & 6 deletions .github/workflows/snowflake-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v6
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: pyproject.toml
- run: pip install ".[dev]"
- run: pip install ".[pandas]"
- run: pip install ".[gds]"
enable-cache: true
- run: uv sync --extra dev --extra pandas --extra snowflake

- name: Run tests
env:
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: pyproject.toml
- run: pip install ".[dev]"
- run: pip install ".[pandas]"
- run: pip install ".[neo4j]"
- run: pip install ".[gds]"
- run: pip install ".[snowflake]"
enable-cache: true
- run: uv sync --extra dev --extra pandas --extra neo4j --extra gds --extra snowflake

- name: Run tests
run: pytest tests/
run: uv run pytest tests/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ out/*
.idea

.dmypy.json
python-wrapper/uv.lock
2 changes: 1 addition & 1 deletion scripts/checkstyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -o pipefail

python -m ruff check .
python -m ruff format --check .
mypy --config-file "${GIT_ROOT}/python-wrapper/pyproject.toml" .
python -m mypy --config-file "${GIT_ROOT}/python-wrapper/pyproject.toml" .


if [ "${SKIP_NOTEBOOKS:-false}" == "true" ]; then
Expand Down