Skip to content

Commit

Permalink
#3: Github workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
garyd203 committed Feb 5, 2021
1 parent ea3f6ed commit 72bbdf4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Validate and Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8"]

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
python -m pip install flake8 pytest
- name: Check Formatting
run: |
black --check src tests
- name: Test
run: |
pytest tests

0 comments on commit 72bbdf4

Please sign in to comment.