From 1c68890e2e9310209e7d82cee9f4bba0354a2095 Mon Sep 17 00:00:00 2001 From: Ellis Percival <flyte@failcode.co.uk> Date: Mon, 18 Jan 2021 19:46:06 +0000 Subject: [PATCH] More Github Actions fun --- .github/workflows/test.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 625f44e..d3b5da7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,11 +3,16 @@ on: push jobs: test: - name: Run tests with tox + name: Run tests runs-on: ubuntu-18.04 + strategy: + matrix: + python-version: ["2.7", "3.6"] steps: - uses: actions/checkout@v2 - - - name: Run tox - uses: docker://python:3.6 - run: tox -e py36 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - run: pip install black pytest mock + - run: make schema + - run: py.test -m "not hw_raspberrypi and not mqtt" -- GitLab