From c6d1fd15a4bf4d612ef7e1a5db0c139017056628 Mon Sep 17 00:00:00 2001 From: Ben Cail Date: Wed, 25 Nov 2020 15:52:12 -0500 Subject: [PATCH] switch to GitHub actions --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ .travis.yml | 33 --------------------------------- 2 files changed, 33 insertions(+), 33 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..bedb2f67 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [ development ] + pull_request: + branches: [ development ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - 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: | + sudo apt install libjpeg-turbo8 libjpeg-turbo8-dev libfreetype6 libfreetype6-dev zlib1g-dev liblcms2-2 liblcms2-dev liblcms2-utils libopenjp2-tools libtiff5-dev libwebp-dev + python -m pip install --upgrade pip + pip install -r requirements_test.txt + - name: Run Tests + run: | + flake8 --select=F --ignore=F841 + coverage run --module py.test --verbose tests/*.py + coverage report diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6351cefb..00000000 --- a/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -dist: xenial - -addons: - apt: - packages: - - libjpeg-turbo8 - - libjpeg-turbo8-dev - - libfreetype6 - - libfreetype6-dev - - zlib1g-dev - - liblcms2-2 - - liblcms2-dev - - liblcms2-utils - - libopenjp2-tools - - libtiff5-dev - - libwebp-dev - -language: python - -python: - - 3.6 - - 3.7 - - 3.8 - -install: - - pip install -r requirements_test.txt - -script: - - "flake8 --select=F --ignore=F841" - - "coverage run --module py.test --verbose tests/*.py" - - "coverage report" - -