From 0a7c199117d4341c4d22327883eed725bf1bc4a6 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sat, 14 Mar 2020 11:19:59 -0400 Subject: [PATCH] Add CI action workflow --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..69c2504 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI +on: [pull_request] +jobs: + Test: + runs-on: ubuntu-latest + strategy: + matrix: + python: + - version: 3.5 + toxenv: py35 + - version: 3.6 + toxenv: py36 + - version: 3.7 + toxenv: py37 + - version: 3.8 + toxenv: py38 + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python.version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python.version }} + - name: Run ${{ matrix.python.toxenv }} tests via tox + run: | + pip install tox==3.14.5 + tox -e ${{ matrix.python.toxenv }} + Check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Run meta checks via tox + run: | + pip install tox==3.14.5 + tox -e format -e static -e docs