diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..46bdc5d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,23 @@ +name: build +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + image-tag: + - 37 + - 38 + - 39 + - 310 + container: thumbororg/thumbor-test:${{ matrix.image-tag }} + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Setup + run: make setup + - name: Run unit tests + run: make unit + - name: Run integration tests + run: make integration diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e246cc7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -python: - - 2.7 - -before_install: - # update aptitude - - sudo apt-get update - - # verify all requirements were met - - pip install opencv-python - - INSTALLDIR=$(python -c "import os; import numpy; import cv2; print(os.path.dirname(cv2.__file__))") - -install: - # install python requirements - - make setup - -script: - # finally run tests - - make test