Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
4114ed88
You need to sign in or sign up before continuing.
Commit
4114ed88
authored
Jul 11, 2020
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tensorflow install in CI
parent
edb78974
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
27 deletions
+2
-27
.github/workflows/workflow.yml
.github/workflows/workflow.yml
+2
-6
tests/install-tensorflow.sh
tests/install-tensorflow.sh
+0
-21
No files found.
.github/workflows/workflow.yml
View file @
4114ed88
...
@@ -29,7 +29,7 @@ jobs:
...
@@ -29,7 +29,7 @@ jobs:
max-parallel
:
6
max-parallel
:
6
matrix
:
matrix
:
python-version
:
[
3.6
]
python-version
:
[
3.6
]
TF-version
:
[
1.5.0
,
1.15.0
]
TF-version
:
[
tensorflow==1.5.0
,
tensorflow-cpu==
1.15.0
]
steps
:
steps
:
-
uses
:
actions/checkout@v1
-
uses
:
actions/checkout@v1
-
name
:
Set up Python ${{ matrix.python-version }}
-
name
:
Set up Python ${{ matrix.python-version }}
...
@@ -45,12 +45,8 @@ jobs:
...
@@ -45,12 +45,8 @@ jobs:
# check that dataflow can be imported alone without tensorflow
# check that dataflow can be imported alone without tensorflow
python -c "import cv2; print('OpenCV '+ cv2.__version__)"
python -c "import cv2; print('OpenCV '+ cv2.__version__)"
-
name
:
Install TF
-
name
:
Install TF
env
:
TF_VERSION
:
${{ matrix.TF-version }}
# compatible with travis scripts
TRAVIS_PYTHON_VERSION
:
${{ matrix.python-version }}
run
:
|
run
:
|
./tests/install-tensorflow.sh
python -m pip install ${{ matrix.TF-version }}
python -c "import tensorflow as tf; print(tf.VERSION, tf.GIT_VERSION)"
python -c "import tensorflow as tf; print(tf.VERSION, tf.GIT_VERSION)"
-
name
:
Run Tests
-
name
:
Run Tests
...
...
tests/install-tensorflow.sh
deleted
100755 → 0
View file @
edb78974
#!/bin/bash -e
if
[
$TF_VERSION
==
"nightly"
]
;
then
TF_BINARY_URL
=
"tf-nightly"
else
if
[[
$TRAVIS_PYTHON_VERSION
==
2
*
]]
;
then
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-
${
TF_VERSION
}
-cp27-none-linux_x86_64
.whl
fi
if
[[
$TRAVIS_PYTHON_VERSION
==
3.4
*
]]
;
then
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-
${
TF_VERSION
}
-cp34-cp34m-linux_x86_64
.whl
fi
if
[[
$TRAVIS_PYTHON_VERSION
==
3.5
*
]]
;
then
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-
${
TF_VERSION
}
-cp35-cp35m-linux_x86_64
.whl
fi
if
[[
$TRAVIS_PYTHON_VERSION
==
3.6
*
]]
;
then
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-
${
TF_VERSION
}
-cp36-cp36m-linux_x86_64
.whl
fi
fi
python
-m
pip
install
--upgrade
${
TF_BINARY_URL
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment