Skip to content

Commit

Permalink
Add GitHub action to run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vterron committed Mar 19, 2021
1 parent f5ca55e commit 93da85b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build

on: [push]

jobs:
run_unit_tests:
runs-on: ubuntu-latest
steps:

- name: Git repository checkout
uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: "3.9"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox virtualenv
- name: Run unit tests
run: |
make test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ FearGreedIndex(
```

Requests to CNN's website are locally [cached](https://pypi.org/project/requests-cache/) for 1m.

![Test workflow](https://github.com/vterron/fear-and-greed/actions/workflows/test.yml/badge.svg)

0 comments on commit 93da85b

Please sign in to comment.