Skip to content

Commit

Permalink
[Tests] Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinShenk committed Jul 13, 2021
1 parent ab2ade6 commit 4c8a859
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Tests

on:
push:
branches: [master]
tags: [v*]
pull_request:
branches: [master]

jobs:
miniconda:
name: Miniconda ${{ matrix.os }} Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: ["ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint
run: |
conda install flake8
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run pytest
run: |
py.test . --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
verbose: false
72 changes: 72 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: py38
channels:
- conda-forge
- defaults
dependencies:
- ca-certificates=2021.5.30=h033912b_0
- certifi=2021.5.30=py38h50d1736_0
- libcxx=12.0.1=habf9029_0
- libffi=3.3=h046ec9c_2
- ncurses=6.2=h2e338ed_4
- openssl=1.1.1k=h0d85af4_0
- pip=21.1.3=pyhd8ed1ab_0
- python=3.8.10=h0e5c897_0_cpython
- python_abi=3.8=2_cp38
- readline=8.1=h05e3726_0
- setuptools=49.6.0=py38h50d1736_3
- sqlite=3.36.0=h23a322b_0
- tk=8.6.10=h0419947_1
- wheel=0.36.2=pyhd3deb0d_0
- xz=5.2.5=haf1e3a3_1
- zlib=1.2.11=h7795811_1010
- pip:
- absl-py==0.13.0
- astunparse==1.6.3
- cachetools==4.2.2
- chardet==4.0.0
- cycler==0.10.0
- flatbuffers==1.12
- gast==0.4.0
- google-auth==1.32.1
- google-auth-oauthlib==0.4.4
- google-pasta==0.2.0
- grpcio==1.34.1
- h5py==3.1.0
- idna==2.10
- keras==2.4.3
- keras-nightly==2.5.0.dev2021032900
- keras-preprocessing==1.1.2
- kiwisolver==1.3.1
- markdown==3.3.4
- matplotlib==3.4.2
- mtcnn==0.1.1
- numpy==1.19.5
- oauthlib==3.1.1
- opencv-contrib-python==4.5.3.56
- opencv-python==4.5.3.56
- opt-einsum==3.3.0
- pandas==1.3.0
- pillow==8.3.1
- protobuf==3.17.3
- pyasn1==0.4.8
- pyasn1-modules==0.2.8
- pyparsing==2.4.7
- python-dateutil==2.8.1
- pytz==2021.1
- pyyaml==5.4.1
- requests==2.25.1
- requests-oauthlib==1.3.0
- rsa==4.7.2
- scipy==1.4.1
- six==1.15.0
- tensorboard==2.5.0
- tensorboard-data-server==0.6.1
- tensorboard-plugin-wit==1.8.0
- tensorflow==2.5.0
- tensorflow-estimator==2.5.0
- termcolor==1.1.0
- typing-extensions==3.7.4.3
- urllib3==1.26.6
- werkzeug==2.0.1
- wrapt==1.12.1
prefix: /usr/local/anaconda3/envs/py38

0 comments on commit 4c8a859

Please sign in to comment.