Skip to content

Commit

Permalink
Move PR tests to Github Actions (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
wrboyce authored Sep 27, 2021
1 parent 701eea4 commit c532c73
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 31 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

0 comments on commit c532c73

Please sign in to comment.