feat: support CN network and ModelScope #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, Lint, and Test | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
workflow_call: | |
jobs: | |
build-and-lint-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pdm-project/setup-pdm@v3 | |
with: | |
python-version: '3.x' | |
cache: true | |
- name: Install dependencies | |
run: pdm install | |
- name: Lint | |
run: pdm run lint | |
- name: Build and Install NebulaGraph-Lite | |
run: pip3 install . | |
- name: Dry run `nebulagraph start` | |
run: nebulagraph --debug start --cleanup | |
e2e-bare-metal: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, ubuntu-latest] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run Build and Install | |
run: | | |
echo "Running tests on ${{ matrix.os }}" | |
pip3 install . | |
- name: Dry run `nebulagraph start` | |
run: nebulagraph --debug start --cleanup | |
e2e-docker: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
image: ["ubuntu:20.04", "rockylinux:9", "ubuntu:latest"] | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
if grep -qEi "debian|buntu" /etc/*release; then | |
apt-get update && apt-get install python3-pip curl -y | |
else | |
yum update -y && yum install python3-pip which -y | |
fi | |
- name: Install NebulaGraph-Lite | |
run: pip3 install . | |
- name: Run NebulaGraph-Lite in container | |
run: nebulagraph --debug --container start | |
# e2e-alpine: | |
# runs-on: ubuntu-22.04 | |
# strategy: | |
# matrix: | |
# image: ["alpine:3.14", "alpine:latest"] | |
# container: | |
# image: ${{ matrix.image }} | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v3 | |
# - name: Install Dependencies | |
# run: | | |
# apk add --no-cache python3 py3-pip curl pipx py3-psutil | |
# - name: Install NebulaGraph-Lite | |
# run: pip3 install --break-system-packages . | |
# - name: Run NebulaGraph-Lite in container | |
# run: nebulagraph --debug --container start |