summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2022-07-17 09:39:12 -0700
committerDavid Lord <davidism@gmail.com>2022-07-17 09:39:12 -0700
commit834b37fedbc977262914b427d1f1fd94005fd12a (patch)
treee64ab09025c4d6cac129f141d74682721e9639e3
parente11e6d8705af987b43833d0a0b4931ce9c73e674 (diff)
downloadblinker-834b37fedbc977262914b427d1f1fd94005fd12a.tar.gz
add github workflow for tests
-rw-r--r--.github/workflows/tests.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
new file mode 100644
index 0000000..521431d
--- /dev/null
+++ b/.github/workflows/tests.yaml
@@ -0,0 +1,36 @@
+name: Tests
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+ branches:
+ - main
+jobs:
+ tests:
+ name: ${{ matrix.name }}
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - {name: '3.11', python: '3.11-dev', tox: py311}
+ - {name: '3.10', python: '3.10', tox: py310}
+ - {name: '3.9', python: '3.9', tox: py39}
+ - {name: '3.8', python: '3.8', tox: py38}
+ - {name: '3.7', python: '3.7', tox: py37}
+ - {name: 'PyPy', python: 'pypy-3.9', tox: pypy39}
+ steps:
+ - uses: actions/checkout@v3
+ - uses: actions/setup-python@v4
+ with:
+ python-version: ${{ matrix.python }}
+ cache: 'pip'
+ cache-dependency-path: 'tests/requirements.txt'
+ - name: update pip
+ run: |
+ pip install -U wheel
+ pip install -U setuptools
+ python -m pip install -U pip
+ - run: pip install tox
+ - run: tox -e ${{ matrix.tox }} -s false