From a9c3bc10e6e8e694b75a5eeda68d58b59938e37d Mon Sep 17 00:00:00 2001 From: Will Boyce Date: Mon, 27 Sep 2021 12:53:37 +0100 Subject: [PATCH] Move PR tests to Github Actions --- .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 31 ------------------------------- 2 files changed, 30 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/ci.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 000000000..c0b6abe1a --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,30 @@ +name: CI + +on: # yamllint disable-line rule:truthy + pull_request: + branches: ["master"] + +jobs: + test: + runs-on: ubuntu-20.04 + strategy: + matrix: + python: [3.6, 3.7, 3.8] + steps: + - name: Checkout Code Repository + uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - uses: actions/cache@v2 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip${{ matrix.python }}-${{ hashFiles('requirements.txt') }} + restore-keys: ${{ runner.os }}-pip${{ matrix.python }}- + - name: Install + run: make requirements && python setup.py install + - name: Lint + run: make flake black-check + - name: Test + run: make tests diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e605fe0a9..000000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -language: python -python: - - "3.6" - - "3.7" - - "3.8" -dist: xenial -addons: - apt: - packages: - - cmake -# command to install dependencies -cache: - - pip -install: - - make requirements - - python setup.py install - -script: - - make flake - - make black-check - - make test-docs - - make test-handler - - make test-middleware - - make test-placebo - - make test-async - - make test-general - -after_success: - coveralls -notifications: - slack: zappateam:TTJ0mfHunDK0IBweKkEXjGpR