Skip to content
Open
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
55 changes: 26 additions & 29 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,23 @@ concurrency:

jobs:
ubuntu:
name: Ubuntu 22.04 Python
name: Ubuntu 24.04 Python
runs-on: ubuntu-latest
env:
GAR_TEST_DATA: ${{ github.workspace }}/graphar-testing/

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
submodules: true

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: '3.10'

- name: Install dependencies
run: |

# install the latest arrow deb to test arrow
wget -c https://apache.jfrog.io/artifactory/arrow/"$(lsb_release --id --short | tr 'A-Z' 'a-z')"/apache-arrow-apt-source-latest-$(lsb_release --codename --short).deb \
-P /tmp/
Expand All @@ -74,31 +73,29 @@ jobs:

- name: Install GraphAr Python SDK
working-directory: "python"
run: |
pip install ./ -v

- name: Install Poetry
working-directory: python
run: |
pip install poetry --quiet
poetry env use python3
poetry install --with test --no-root
poetry run pip install . -v

- name: Run Cli Test
working-directory: "python"
run: |
graphar --help
graphar check -p ../testing/neo4j/MovieGraph.graph.yml
graphar show -p ../testing/neo4j/MovieGraph.graph.yml -v Person
graphar show -p ../testing/neo4j/MovieGraph.graph.yml -es Person -e ACTED_IN -ed Movie
graphar import -c ../testing/neo4j/data/import.mini.yml
poetry run graphar --help
poetry run graphar check -p ../testing/neo4j/MovieGraph.graph.yml
poetry run graphar show -p ../testing/neo4j/MovieGraph.graph.yml -v Person
poetry run graphar show -p ../testing/neo4j/MovieGraph.graph.yml -es Person -e ACTED_IN -ed Movie
poetry run graphar import -c ../testing/neo4j/data/import.mini.yml

- name: Run pytest
working-directory: "python"
run: |
pytest test -v
poetry run pytest -vvv


- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}

Expand All @@ -115,38 +112,38 @@ jobs:
GAR_TEST_DATA: ${{ github.workspace }}/graphar-testing/

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
submodules: true

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.13'

- name: Install dependencies
run: |
brew bundle --file=cpp/Brewfile

git clone https://github.com/apache/incubator-graphar-testing.git $GAR_TEST_DATA --depth 1

- name: Install GraphAr Python SDK
working-directory: "python"
run: |
pip install ./ -v
pip install poetry --quiet
poetry env use python3
poetry install --with test --no-root
poetry run pip install . -v

- name: Run Cli Test
working-directory: "python"
run: |
graphar --help
graphar --version
graphar check -p ../testing/neo4j/MovieGraph.graph.yml
graphar show -p ../testing/neo4j/MovieGraph.graph.yml -v Person
graphar show -p ../testing/neo4j/MovieGraph.graph.yml -es Person -e ACTED_IN -ed Movie
poetry run graphar --help
poetry run graphar check -p ../testing/neo4j/MovieGraph.graph.yml
poetry run graphar show -p ../testing/neo4j/MovieGraph.graph.yml -v Person
poetry run graphar show -p ../testing/neo4j/MovieGraph.graph.yml -es Person -e ACTED_IN -ed Movie
poetry run graphar import -c ../testing/neo4j/data/import.mini.yml

- name: Run pytest
working-directory: "python"
run: |
pytest test -v


# TODO: Add unit tests
poetry run pytest -vvv
Loading
Loading