-
Notifications
You must be signed in to change notification settings - Fork 25
57 lines (53 loc) · 1.65 KB
/
python_package.yml
File metadata and controls
57 lines (53 loc) · 1.65 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Test python package
on:
push:
pull_request:
schedule:
- cron: '0 0 1,15 * *' # JST 9:00 AM, 1st and 15th of every month
jobs:
build:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} with NumPy ${{ matrix.numpy-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: ['ubuntu-latest']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
numpy-version: ['latest']
include:
- os: 'macos-latest'
python-version: '3.9'
numpy-version: 'latest'
- os: 'macos-latest'
python-version: '3.13'
numpy-version: 'latest'
- os: 'windows-latest'
python-version: '3.9'
numpy-version: 'latest'
- os: 'windows-latest'
python-version: '3.13'
numpy-version: 'latest'
- os: 'ubuntu-latest'
python-version: '3.9'
numpy-version: '1.26.4'
- os: 'ubuntu-latest'
python-version: '3.13'
numpy-version: '1.26.4'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up UV
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra tests
- name: Install NumPy 1.26.4
if: matrix.numpy-version == '1.26.4'
run: uv pip install "numpy==1.26.4"
- name: PyTest
run: uv run pytest --capture=sys tests