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
79b5480d
Commit
79b5480d
authored
Aug 30, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add unittest to actions
parent
38b38fe1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
12 deletions
+49
-12
.github/workflows/unittest.yml
.github/workflows/unittest.yml
+38
-0
.travis.yml
.travis.yml
+7
-7
tests/install-tensorflow.sh
tests/install-tensorflow.sh
+4
-5
No files found.
.github/workflows/unittest.yml
0 → 100644
View file @
79b5480d
name
:
Unit Tests
on
:
[
push
,
pull_request
]
jobs
:
unittest
:
runs-on
:
ubuntu-latest
strategy
:
max-parallel
:
4
matrix
:
python-version
:
[
2.7
,
3.6
]
TF-version
:
[
1.3.0
,
1.14.0
,
nightly
]
steps
:
-
uses
:
actions/checkout@v1
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v1
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
python -m pip install scikit-image opencv-python lmdb h5py pyarrow
python -m pip install .
python -c "import tensorpack.dataflow"
# check that dataflow can be imported alone without tensorflow
python -c "import cv2; print('OpenCV '+ cv2.__version__)"
-
name
:
Install TF
env
:
TF_VERSION
:
${{ matrix.TF-version }}
# compatible with travis scripts
TRAVIS_PYTHON_VERSION
:
${{ matrix.python-version }}
run
:
|
./tests/install-tensorflow.sh
python -c "import tensorflow as tf; print(tf.VERSION, tf.GIT_VERSION)"
-
name
:
Test
run
:
./tests/run-tests.sh
.travis.yml
View file @
79b5480d
...
...
@@ -20,24 +20,24 @@ matrix:
include
:
-
os
:
linux
python
:
2.7
env
:
TF_VERSION=1.3.0
TF_TYPE=release
env
:
TF_VERSION=1.3.0
-
os
:
linux
python
:
3.6
env
:
TF_VERSION=1.3.0
TF_TYPE=release
env
:
TF_VERSION=1.3.0
-
os
:
linux
python
:
2.7
env
:
TF_VERSION=1.14.0
TF_TYPE=release
env
:
TF_VERSION=1.14.0
-
os
:
linux
python
:
3.6
env
:
TF_VERSION=1.14.0
TF_TYPE=release
PYPI=true
env
:
TF_VERSION=1.14.0 PYPI=true
-
os
:
linux
python
:
2.7
env
:
TF_
TYPE
=nightly
env
:
TF_
VERSION
=nightly
-
os
:
linux
python
:
3.6
env
:
TF_
TYPE
=nightly
env
:
TF_
VERSION
=nightly
allow_failures
:
-
env
:
TF_
TYPE
=nightly
-
env
:
TF_
VERSION
=nightly
install
:
-
pip install -U pip
# the pip version on travis is too old
...
...
tests/install-tensorflow.sh
View file @
79b5480d
#!/bin/bash -e
if
[
$TF_TYPE
==
"release"
]
;
then
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
...
...
@@ -14,9 +16,6 @@ if [ $TF_TYPE == "release" ]; then
TF_BINARY_URL
=
https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-
${
TF_VERSION
}
-cp36-cp36m-linux_x86_64
.whl
fi
fi
if
[
$TF_TYPE
==
"nightly"
]
;
then
TF_BINARY_URL
=
"tf-nightly"
fi
p
ip
install
--upgrade
${
TF_BINARY_URL
}
p
ython
-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