Skip to content

Commit 4494255

Browse files
committed
MAINT: Update CI to use Poetry
1 parent bc2bce1 commit 4494255

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ${{ matrix.os }}
98
strategy:
109
matrix:
1110
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"]
1512
steps:
1613
- uses: actions/checkout@v3
1714
- name: Set up Python ${{ matrix.python-version }}
@@ -20,19 +17,15 @@ jobs:
2017
python-version: ${{ matrix.python-version }}
2118
- name: Install dependencies
2219
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
2523
- name: Lint with flake8
2624
run: |
27-
pip install flake8
2825
# stop the build if there are Python syntax errors or undefined names
2926
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3027
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3128
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
32-
- name: Install numpy-financial
33-
run: |
34-
pip install .
3529
- name: Test with pytest
3630
run: |
37-
pip install pytest
38-
pytest
31+
poetry run pytest

0 commit comments

Comments
 (0)