Skip to content
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

Update CI workflow #48

Merged
merged 10 commits into from
Aug 31, 2023
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
58 changes: 19 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,33 @@ jobs:
build_and_test_ubuntu:
strategy:
matrix:
platform: [ubuntu-20.04]
python_version: ['3.8']
mgversion:
- 1.3.0
- 1.4.0
- 1.6.1
- 2.0.0
- 2.1.1
- 2.2.0
include:
- {platform: 'ubuntu-20.04', python_version: '3.8', mgversion: '2.0.1'}
- {platform: 'ubuntu-20.04', python_version: '3.8', mgversion: '2.5.2'}
- {platform: 'ubuntu-20.04', python_version: '3.8', mgversion: '2.10.1'}
- {platform: 'ubuntu-22.04', python_version: '3.10', mgversion: '2.5.2'}
- {platform: 'ubuntu-22.04', python_version: '3.10', mgversion: '2.10.1'}
runs-on: ${{ matrix.platform }}
steps:
- name: Cache Memgraph community installer
id: cache-memgraph-community
uses: actions/cache@v1
with:
path: ~/memgraph
key: cache-memgraph-v${{ matrix.mgversion }}-community-installer-v3
key: cache-memgraph-v${{ matrix.mgversion }}-{{ matrix.platform }}-community-installer-v3
- name: Download Memgraph
if: steps.cache-memgraph-community.outputs.cache-hit != 'true'
run: |
mkdir ~/memgraph
COMMUNITY_SUFFIX="-community"
if [[ "${{ matrix.mgversion }}" != 1* ]]; then
COMMUNITY_SUFFIX=""
fi
curl -L https://download.memgraph.com/memgraph/v${{ matrix.mgversion }}/${{ matrix.platform }}/memgraph_${{ matrix.mgversion }}${COMMUNITY_SUFFIX}-1_amd64.deb > ~/memgraph/memgraph.deb
MEMGRAPH_PACKAGE_NAME="memgraph_${{ matrix.mgversion }}-1_amd64.deb"
echo "MEMGRAPH_PACKAGE_NAME=${MEMGRAPH_PACKAGE_NAME}" >> $GITHUB_ENV
curl -L https://download.memgraph.com/memgraph/v${{ matrix.mgversion }}/${{ matrix.platform }}/${MEMGRAPH_PACKAGE_NAME} > ~/memgraph/${MEMGRAPH_PACKAGE_NAME}
- name: Install system dependencies
run: |
sudo apt install -y libpython${{ matrix.python_version }} python3-pip python3-setuptools
sudo pip3 install --upgrade networkx pytest pyopenssl sphinx
sudo ln -s /dev/null /etc/systemd/system/memgraph.service # Prevents Memgraph from starting.
sudo dpkg -i ~/memgraph/memgraph.deb
sudo dpkg -i ~/memgraph/${MEMGRAPH_PACKAGE_NAME}
- uses: actions/checkout@v2
with:
submodules: true
Expand All @@ -54,6 +49,8 @@ jobs:
- name: Install pymgclient
if: matrix.mgversion != '1.3.0'
run: python3 -m pip install ./dist/pymgclient-*
- name: Import mgclient to validate installation
run: python3 -c "import mgclient"
- name: Run tests
run: |
MEMGRAPH_PORT=10000
Expand All @@ -72,24 +69,7 @@ jobs:
name: pymgclient
path: dist/

build_ubuntu_2204:
runs-on: ubuntu-22.04
steps:
- name: Install system dependencies
run: |
sudo apt install -y libpython3.10 python3-pip python3-setuptools
sudo pip3 install networkx pytest pyopenssl sphinx
- uses: actions/checkout@v2
with:
submodules: true
- name: Build source distribution
run: python3 setup.py sdist
- name: Install pymgclient
run: python3 -m pip install ./dist/pymgclient-*
- name: Import mgclient to validate installation
run: python3 -c "import mgclient"

build_windows_and_test:
build_and_test_windows:
runs-on: windows-2019
strategy:
matrix:
Expand All @@ -99,7 +79,7 @@ jobs:
- '3.7'
- '3.10'
env:
MG_VERSION: 2.2.0
MG_VERSION: 2.10.1
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -159,13 +139,13 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-12, macos-11, macos-10.15]
platform: [macos-13, macos-12, macos-11]
python_version:
- '3.7'
- '3.8'
- '3.10'
include:
- {platform: [macOS-11.6, ARM64, self-hosted], python_version: '3.10'}
- {platform: [macOS-11.6, ARM64, self-hosted], python_version: '3.8'}
- {platform: [macOS-12.1, ARM64, self-hosted], python_version: '3.10'}
- {platform: [macOS-12.1, ARM64, self-hosted], python_version: '3.8'}
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
build_macos:
strategy:
matrix:
platform: [macos-10.15]
platform: [macos-11]
python_version:
- '3.7'
- '3.8'
Expand Down
2 changes: 1 addition & 1 deletion docs/source/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Installation

pymgclient has prebuilt binary packages for

* macOS Catalina (version 10.15) and newer on x86_64 with `Python
* macOS BigSur (version 11) and newer on x86_64 with `Python
<https://www.python.org/downloads/>`_ 3.7+

* macOS Monterey (version 12) and newer on arm64 with `Python
Expand Down
Loading