Skip to content

Commit

Permalink
Add GitHub Actions test config
Browse files Browse the repository at this point in the history
Run a GitHub Action to run the existing test suite any time commits are
pushed to the `master` branch or a pull request targets it. Also include
an initial test matrix lay groundwork for future additional Python
version support.
  • Loading branch information
jonafato authored and sw00 committed Sep 22, 2021
1 parent f423323 commit dcd193b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

on:
push:
branches:
- "master"
pull_request:
branches:
- "master"

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

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

- name: "Run tests"
run: |
python -m pip install pipenv
pipenv --python python3.6 install --dev
pipenv run pytest tests

0 comments on commit dcd193b

Please sign in to comment.