Skip to content

Commit

Permalink
add github tests
Browse files Browse the repository at this point in the history
  • Loading branch information
beckedorf committed Nov 20, 2021
1 parent a0d3517 commit 4191cce
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests

on:
pull_request:
paths-ignore:
- 'dist/**'
push:
paths-ignore:
- 'dist/**'

jobs:
tests:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest

strategy:
matrix:
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Upgrade packaging tools
run: python -m pip install --upgrade pip setuptools virtualenv wheel

- name: Run tests for ${{ matrix.python-version }}
run: python -m unittest

0 comments on commit 4191cce

Please sign in to comment.