-
-
Notifications
You must be signed in to change notification settings - Fork 82
41 lines (39 loc) · 1.1 KB
/
pythonpackage.yml
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
38
39
40
41
name: Test package
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
activate-environment: npf-dev
environment-file: environment.yml
auto-activate-base: false
- name: Conda metadata
run: |
conda info
conda list
- name: Lint
run: |
set -euo pipefail
# Tell us what version we are using
ruff version
# Check the source file, ignore type annotations (ANN) for now.
ruff check numpy_financial/ benchmarks/ --ignore F403 --select E,F,B,I
- name: Build project
run: |
spin build -v
- name: Test with pytest
run: |
spin test -- --doctest-modules