-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (45 loc) · 1.3 KB
/
python-package.yml
File metadata and controls
48 lines (45 loc) · 1.3 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
name: Python tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-15-intel, macos-latest, ubuntu-latest]
include:
- os: ubuntu-latest
INSTALL_DEPS: sudo apt-get install liblapack-dev libfftw3-dev
- os: macos-15-intel
INSTALL_DEPS: brew install fftw
- os: macos-latest
INSTALL_DEPS: brew install fftw
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "pypy3.10", "pypy3.11"]
exclude:
- os: macos-13
python-version: "3.13"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
version: "latest"
python-version: ${{ matrix.python-version }}
- name: Install libraries
run: ${{ matrix.INSTALL_DEPS }}
- name: Install dependencies
run: uv sync --frozen
- name: Run tests on python ${{ matrix.python-version }}
run: uv run pytest -v
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: ${{ failure() }}
with:
## If no one connects after 5 minutes, shut down server.
wait-timeout-minutes: 5