Skip to content

Commit

Permalink
Merge pull request #81 from hammem/autorun_unit_tests
Browse files Browse the repository at this point in the history
Add GitHub action to run unit tests on push, PR, and on demand
  • Loading branch information
hammem authored Feb 16, 2024
2 parents 39180b2 + 1451486 commit 684e7db
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: monarchmoney build

on: [push, pull_request]
on:
push:
pull_request:
workflow_dispatch:

jobs:
black:
Expand All @@ -9,3 +12,18 @@ jobs:
- uses: actions/checkout@v2
- name: lint
uses: psf/black@stable
unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests with unittest
run: |
python -m unittest tests/test_monarchmoney.py

0 comments on commit 684e7db

Please sign in to comment.