diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..a5961dd92 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: CI +on: push +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [2.7, 3.4, 3.5, 3.6, 3.7] + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install setuptools wheel + pip install . + pip install tox-gh-actions + - name: Check package setup + run: python setup.py check + - name: Test + run: tox diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6bb102ab7..000000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -dist: trusty -sudo: required -language: python -python: - - "2.7" - - "3.4" - - "3.5" - - "3.6" - -before_install: -- sudo apt-get -qq update -- sudo apt-get install -qq cmake python-numpy python-scipy libboost-python-dev -- pip install git+https://github.com/ageitgey/face_recognition_models - -install: - - pip install -r requirements.txt - - pip install tox-travis - -script: tox - -# Temporary for Python 3.7 -matrix: - include: - - python: 3.7 - dist: xenial - sudo: true diff --git a/tox.ini b/tox.ini index 03799ea76..96f789154 100644 --- a/tox.ini +++ b/tox.ini @@ -4,15 +4,17 @@ envlist = py34 py35 py36 + py37 flake8 -[travis] +[gh-actions] python = 2.7: py27, flake8 3.4: py34, flake8 3.5: py35, flake8 3.6: py36, flake8 + 3.7: py37, flake8 [testenv]