Bug fix #464
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: unit test action | |
on: [push, pull_request] | |
env: | |
PYTHON_VERSION: 3.11 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v4 | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements-dev.txt | |
pip install pytest | |
pip install -e . | |
- name: show package is importable | |
run: | | |
python -c "import financepy as fp" | |
- name: list dependencies | |
run: | | |
pip list | |
- name: unit tests | |
run: | | |
pytest -vv |