| 1 |
name: CI Ubuntu |
| 2 |
|
| 3 |
on: |
| 4 |
- push |
| 5 |
- pull_request |
| 6 |
|
| 7 |
jobs: |
| 8 |
build: |
| 9 |
runs-on: ubuntu-latest |
| 10 |
strategy: |
| 11 |
matrix: |
| 12 |
python-version: ["3.10", "3.11", "3.12", "3.13"] |
| 13 |
|
| 14 |
steps: |
| 15 |
- name: apt install |
| 16 |
run: | |
| 17 |
sudo apt-get update |
| 18 |
sudo apt install -y libfftw3-dev |
| 19 |
- uses: actions/checkout@v4 |
| 20 |
- name: Set up Python ${{ matrix.python-version }} |
| 21 |
uses: actions/setup-python@v5 |
| 22 |
with: |
| 23 |
python-version: ${{ matrix.python-version }} |
| 24 |
- name: Install PDM |
| 25 |
run: | |
| 26 |
python -m pip install --upgrade pip |
| 27 |
pip install pdm |
| 28 |
|
| 29 |
- name: Install dependencies |
| 30 |
run: | |
| 31 |
pdm sync |
| 32 |
|
| 33 |
- name: Test |
| 34 |
run: | |
| 35 |
pdm run pytest tests |