From 22faf6021df832e97b5406389700d41b0c9c18fb Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 15 Sep 2021 14:21:31 -0600 Subject: [PATCH] Add GitHub Actions definition for CI Signed-off-by: Zack Cerza --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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 0000000000..bb218aae49 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + test: + name: CI on python${{ matrix.python }} via ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + python: [3.6, 3.9] + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install tox + run: pip install tox + - name: Run flake8 + run: tox -e flake8 + - name: Run unit tests + run: tox -e py3 -- 2.39.5