Skip to content

Commit 3ca4fb5

Browse files
committed
fix(hubble-ci): fix python version problem
1 parent 98dee1c commit 3ca4fb5

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/hubble-ci.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
matrix:
3737
JAVA_VERSION: ['11']
38-
python-version: ["3.9", "3.10", "3.11"]
38+
python-version: ["3.11"]
3939

4040
steps:
4141
- name: Fetch Code
@@ -54,8 +54,6 @@ jobs:
5454
with:
5555
python-version: ${{ matrix.python-version }}
5656
cache: 'pip'
57-
cache-dependency-path: '${TRAVIS_DIR}/requirements-dev.txt'
58-
5957

6058
# we also should cache python & yarn & downloads to avoid useless work
6159
- name: Cache Maven packages
@@ -72,10 +70,16 @@ jobs:
7270
cp $HOME/.m2/settings.xml /tmp/settings.xml
7371
mv -vf .github/configs/settings.xml $HOME/.m2/settings.xml
7472
73+
- name: Compile
74+
run: |
75+
mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp
76+
cd hugegraph-hubble && ls *
77+
mvn -e compile -Dmaven.javadoc.skip=true -ntp
78+
7579
- name: Prepare env and service
7680
run: |
7781
78-
sudo python -m pip install -r ${TRAVIS_DIR}/requirements.txt
82+
python -m pip install -r ${TRAVIS_DIR}/requirements.txt
7983
cd hugegraph-hubble
8084
mvn package -Dmaven.test.skip=true
8185
cd apache-hugegraph-hubble-incubating*
@@ -86,12 +90,6 @@ jobs:
8690
pwd
8791
$TRAVIS_DIR/install-hugegraph.sh $COMMIT_ID
8892
89-
- name: Compile
90-
run: |
91-
mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp
92-
cd hugegraph-hubble && ls *
93-
mvn -e compile -Dmaven.javadoc.skip=true -ntp
94-
9593
- name: Unit test
9694
run: mvn test -P unit-test -pl hugegraph-hubble/hubble-be -ntp
9795

hugegraph-hubble/hubble-dist/assembly/travis/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pytest >= 3.0
33
six >= 1.11
44
behave >= 1.2.6
55
assertpy >= 0.15
6+
requests

0 commit comments

Comments
 (0)