about summary refs log tree commit diff stats
path: root/.github/workflows/pypy.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/pypy.yml')
-rw-r--r--.github/workflows/pypy.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/pypy.yml b/.github/workflows/pypy.yml
new file mode 100644
index 00000000..3d56e06c
--- /dev/null
+++ b/.github/workflows/pypy.yml
@@ -0,0 +1,34 @@
+name: PEP8 and tests
+
+on:
+  push:
+    paths:
+      - '.github/workflows/python.yml'
+      - '**.py'
+  pull_request:
+    paths:
+      - '.github/workflows/python.yml'
+      - '**.py'
+
+jobs:
+  test_py:
+    runs-on: ubuntu-latest
+    strategy:
+      max-parallel: 4
+      matrix:
+        python-version: [pypy2, 2.7, pypy3, 3.5, 3.6, 3.7, 3.8, 3.9]
+    env:
+      TERM: dumb
+    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 dependencies
+      run: |
+        python -m pip install --upgrade pip
+        pip install -r requirements.txt
+    - name: Flake8 and test
+      run: |
+        make test_flake8 test_pytest test_doctest test_other