-
-
Notifications
You must be signed in to change notification settings - Fork 400
37 lines (28 loc) · 819 Bytes
/
run-unit-tests.yml
File metadata and controls
37 lines (28 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: unit test action
on: [push, pull_request]
env:
PYTHON_VERSION: '3.12'
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
python -m pip install -r requirements.txt
python -m pip install .[test]
- name: show package is importable
run: |
python -c "import financepy as fp; print(fp.__version__)"
- name: list dependencies
run: |
pip list
- name: unit tests
run: |
pytest -vv