@@ -4,14 +4,11 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
build :
7
-
8
7
runs-on : ${{ matrix.os }}
9
8
strategy :
10
9
matrix :
11
10
os : [ubuntu-latest, macos-latest, windows-latest]
12
- python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
13
- numpy-version : ["oldest-supported-numpy", "numpy"]
14
-
11
+ python-version : ["3.9", "3.10", "3.11"]
15
12
steps :
16
13
- uses : actions/checkout@v3
17
14
- name : Set up Python ${{ matrix.python-version }}
@@ -20,19 +17,15 @@ jobs:
20
17
python-version : ${{ matrix.python-version }}
21
18
- name : Install dependencies
22
19
run : |
23
- python -m pip install --upgrade pip
24
- pip install ${{ matrix.numpy-version }}
20
+ python -m pip install --upgrade pip poetry
21
+ poetry env use ${{ matrix.python-version }}
22
+ poetry install --with=test --with=lint
25
23
- name : Lint with flake8
26
24
run : |
27
- pip install flake8
28
25
# stop the build if there are Python syntax errors or undefined names
29
26
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
30
27
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
31
28
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32
- - name : Install numpy-financial
33
- run : |
34
- pip install .
35
29
- name : Test with pytest
36
30
run : |
37
- pip install pytest
38
- pytest
31
+ poetry run pytest
0 commit comments