-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
102 additions
and
86 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
# os: ["ubuntu-latest", "windows-latest"] | ||
os: ["ubuntu-18.04", "windows-2019"] | ||
# os: ["ubuntu-18.04"] | ||
steps: | ||
# Setup | ||
- uses: actions/checkout@v2 | ||
|
@@ -36,7 +34,7 @@ jobs: | |
# https://github.com/conda-incubator/setup-miniconda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
python-version: 3.6 | ||
python-version: 3.7 | ||
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | ||
environment-file: environment_build.yml | ||
activate-environment: sleap | ||
|
@@ -67,9 +65,9 @@ jobs: | |
if: matrix.os == 'ubuntu-18.04' | ||
shell: bash -l {0} | ||
run: | | ||
sudo apt-get install xvfb libxkbcommon-x11-0 | ||
sudo Xvfb :1 -screen 0 1024x768x24 </dev/null & | ||
export DISPLAY=":1" | ||
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 | ||
export DISPLAY=":99.0" | ||
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX | ||
xvfb-run pytest tests/ | ||
conda build .conda --output-folder build -c https://conda.anaconda.org/sleap/ | ||
- name: Build conda package (Windows) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,18 @@ on: | |
paths: | ||
- 'sleap/**' | ||
- 'tests/**' | ||
- '.github/workflows/ci.yml' | ||
|
||
jobs: | ||
type_check: | ||
name: Type Check | ||
runs-on: "ubuntu-18.04" | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python 3.6 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.6 | ||
python-version: 3.7 | ||
- name: Install Dependencies | ||
run: | | ||
pip install mypy | ||
|
@@ -30,10 +31,10 @@ jobs: | |
runs-on: "ubuntu-18.04" | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python 3.6 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.6 | ||
python-version: 3.7 | ||
- name: Install Dependencies | ||
run: | | ||
pip install black==20.8b1 | ||
|
@@ -62,7 +63,7 @@ jobs: | |
# https://github.com/conda-incubator/setup-miniconda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
python-version: 3.6 | ||
python-version: 3.7 | ||
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | ||
environment-file: environment_build.yml | ||
activate-environment: sleap | ||
|
@@ -83,8 +84,14 @@ jobs: | |
- name: Test with pytest (Ubuntu) | ||
if: matrix.os == 'ubuntu-18.04' | ||
shell: bash -l {0} | ||
# https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions | ||
# sudo apt-get install xvfb libxkbcommon-x11-0 | ||
# sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 | ||
# export DISPLAY=":99.0" | ||
# /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX | ||
# xvfb-run pytest --cov=sleap --cov-report=xml tests/ | ||
run: | | ||
sudo apt-get install xvfb libxkbcommon-x11-0 | ||
sudo apt install xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 | ||
sudo Xvfb :1 -screen 0 1024x768x24 </dev/null & | ||
export DISPLAY=":1" | ||
xvfb-run pytest --cov=sleap --cov-report=xml tests/ | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
name: sleap | ||
|
||
dependencies: | ||
- python=3.6 | ||
- python=3.7 | ||
- Pillow | ||
- Shapely | ||
- anaconda-client | ||
- conda-verify | ||
- pip | ||
- pip: | ||
- tensorflow==2.3.1 | ||
- tensorflow==2.7.0 | ||
- pyside2==5.14.1 | ||
- "--editable=./" | ||
- "--requirement=./dev_requirements.txt" |
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
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
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
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
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
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
Oops, something went wrong.