From 014320bc43e9d0ca9163c3bc1332a117b020b7a1 Mon Sep 17 00:00:00 2001 From: Sakari Ikonen <64256562+saikonen@users.noreply.github.com> Date: Sat, 12 Feb 2022 19:02:00 +0200 Subject: [PATCH] Add github workflows for running tests on multiple python versions (#23) --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..eec5ce5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: Test +on: [push, pull_request] +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.7, 3.8, "3.10"] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install Python ${{ matrix.python-version }} dependencies + run: | + python -m pip install --upgrade pip + pip install . + - name: Run pytest + run: pytest \ No newline at end of file