-
Notifications
You must be signed in to change notification settings - Fork 4
Update CI to use newer python versions #67
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
base: master
Are you sure you want to change the base?
Conversation
.github/workflows/ci.yml
Outdated
- {platform: 'ubuntu-24.04', python_version: '3.11', mgversion: 'latest'} | ||
- {platform: 'ubuntu-24.04', python_version: '3.12', mgversion: 'latest'} | ||
- {platform: 'ubuntu-24.04', python_version: '3.13', mgversion: 'latest'} | ||
- {platform: 'fedora-41', python_version: '3.13', mgversion: 'latest'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fedora 42 is actually latest, not critical to change!
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
docker cp $LOCAL_PACKAGE_NAME testcontainer:/$LOCAL_PACKAGE_NAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to a script that could be run independently of Github
.github/workflows/ci.yml
Outdated
run: python3 -m pip install ./dist/pymgclient-* | ||
run: | | ||
docker exec -i testcontainer \ | ||
bash -c "python3 -m pip install ${{ env.STATIC_SSL }} ./pymgclient/dist/pymgclient-* ${{ env.BREAK_PACKAGES }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to the wheel + distribute the static code version as well
# nohup /usr/lib/memgraph/memgraph --bolt-port 7687 --bolt-cert-file="" --bolt-key-file="" --data-directory="~/memgraph/data" --storage-properties-on-edges=true --storage-snapshot-interval-sec=0 --storage-wal-enabled=false --data-recovery-on-startup=false --storage-snapshot-on-exit=false --telemetry-enabled=false --log-level=TRACE --log-file='$HOME/memgraph/memgraph.log' & | ||
# nohup /usr/lib/memgraph/memgraph --telemetry-enabled=False & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete the comments
mgversion=$( | ||
curl -s https://api.github.com/repos/memgraph/memgraph/releases/latest \ | ||
| grep -m1 '"tag_name":' \ | ||
| sed -E 's/.*"([^"]+)".*/\1/' \ | ||
| sed 's/^v//' | ||
) | ||
echo "MGVERSION=$mgversion" >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also create a script for this
nohup /usr/lib/memgraph/memgraph --bolt-port 7687 --bolt-cert-file="cert.pem" --bolt-key-file="key.pem" --data-directory="~/memgraph/data" --storage-properties-on-edges=true --storage-snapshot-interval-sec=0 --storage-wal-enabled=false --storage-snapshot-on-exit=false --telemetry-enabled=false --log-file='' & | ||
# nohup /usr/lib/memgraph/memgraph --bolt-port 7687 --bolt-cert-file="" --bolt-key-file="" --data-directory="~/memgraph/data" --storage-properties-on-edges=true --storage-snapshot-interval-sec=0 --storage-wal-enabled=false --data-recovery-on-startup=false --storage-snapshot-on-exit=false --telemetry-enabled=false --log-level=TRACE --log-file='$HOME/memgraph/memgraph.log' & | ||
# nohup /usr/lib/memgraph/memgraph --telemetry-enabled=False & | ||
sleep 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another candidate for centralized wait function
# - '3.9' # this does work, but is old | ||
- '3.10' | ||
- '3.11' | ||
- '3.12' | ||
- '3.13' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the comment + align (1 space)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few optional improvements, the main thing is to isolate bash stuff under independent scripts 🙏
NOTE: requires #73 to be merged into
mgclient
and then updating the submodule here before merging!!!