Skip to content

Commit

Permalink
Add GitHub Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
afwolfe committed Jan 1, 2023
1 parent c99abb2 commit d25d424
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Python

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip pipenv
if [ -f Pipfile ]; then pipenv install --dev --deploy; fi
- name: Lint with black and mypy
run: |
pipenv run python -m black --check .
pipenv run python -m mypy cardvisionpy/
- name: Test with pytest
run: |
pipenv run python -m pytest tests/*test.py

0 comments on commit d25d424

Please sign in to comment.