Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 111 additions & 109 deletions .github/workflows/continuous-integration-pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,115 +38,115 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=8 --max-line-length=88 --statistics --exclude="examples/* *.npy docs/* *.pyx *.pxd"

testing_unix:
needs: [code_lint]
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install linux system dependencies
run: |
sudo apt-get install --yes libopenblas-dev libfftw3-dev
gcc -v

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install -r requirements-dev.txt

- name: Build and install package from source
run: python setup.py develop

- name: Test with pytest
run: |
python -m pip install pytest -U
pytest --cov=./ --cov-report=xml

- name: Upload coverage
uses: codecov/codecov-action@v5.5.1

testing_mac_arm:
needs: [code_lint]
runs-on: "macos-latest"
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install macos system dependencies
run: brew install openblas fftw

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install -r requirements-dev.txt

- name: Build and install package from source
run: python setup.py develop

- name: Test with pytest
run: |
python -m pip install pytest -U
pytest --cov=./ --cov-report=xml

- name: Upload coverage
uses: codecov/codecov-action@v5.5.1

testing_mac_intel:
needs: [code_lint]
runs-on: "macos-13"
strategy:
matrix:
python-version: ["3.12", "3.13"]

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install macos system dependencies
run: brew install openblas fftw

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install -r requirements-dev.txt

- name: Build and install package from source
run: python setup.py develop

- name: Test with pytest
run: |
python -m pip install pytest -U
pytest --cov=./ --cov-report=xml

- name: Upload coverage
uses: codecov/codecov-action@v5.5.1
# testing_unix:
# needs: [code_lint]
# runs-on: "ubuntu-latest"
# strategy:
# matrix:
# python-version: ["3.10", "3.11", "3.12", "3.13"]

# steps:
# - name: Checkout
# uses: actions/checkout@v5

# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v6
# with:
# python-version: ${{ matrix.python-version }}

# - name: Install linux system dependencies
# run: |
# sudo apt-get install --yes libopenblas-dev libfftw3-dev
# gcc -v

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install setuptools
# pip install -r requirements-dev.txt

# - name: Build and install package from source
# run: python setup.py develop

# - name: Test with pytest
# run: |
# python -m pip install pytest -U
# pytest --cov=./ --cov-report=xml

# - name: Upload coverage
# uses: codecov/codecov-action@v5.5.1

# testing_mac_arm:
# needs: [code_lint]
# runs-on: "macos-latest"
# strategy:
# matrix:
# python-version: ["3.10", "3.11", "3.12", "3.13"]

# steps:
# - name: Checkout
# uses: actions/checkout@v5

# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v6
# with:
# python-version: ${{ matrix.python-version }}

# - name: Install macos system dependencies
# run: brew install openblas fftw

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install setuptools
# pip install -r requirements-dev.txt

# - name: Build and install package from source
# run: python setup.py develop

# - name: Test with pytest
# run: |
# python -m pip install pytest -U
# pytest --cov=./ --cov-report=xml

# - name: Upload coverage
# uses: codecov/codecov-action@v5.5.1

# testing_mac_intel:
# needs: [code_lint]
# runs-on: "macos-13"
# strategy:
# matrix:
# python-version: ["3.12", "3.13"]

# steps:
# - name: Checkout
# uses: actions/checkout@v5

# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v6
# with:
# python-version: ${{ matrix.python-version }}

# - name: Install macos system dependencies
# run: brew install openblas fftw

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install setuptools
# pip install -r requirements-dev.txt

# - name: Build and install package from source
# run: python setup.py develop

# - name: Test with pytest
# run: |
# python -m pip install pytest -U
# pytest --cov=./ --cov-report=xml

# - name: Upload coverage
# uses: codecov/codecov-action@v5.5.1

testing_windows:
needs: [code_lint]
Expand All @@ -173,6 +173,8 @@ jobs:
- run: |
conda --version
which python
get-childitem ${CONDA_PREFIX}/include -name "fftw3.h"
get-childitem ${CONDA_PREFIX}/include -name "cblas.h"

- name: Build and install package from source
shell: pwsh
Expand Down
2 changes: 1 addition & 1 deletion src/c_lib/base/base_model.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def core_simulator(method,

dim_sidebands.append(number_of_sidebands if np.any(track) else 1)

# Assing values to previously defined C numpy arrays
# Assign values to previously defined C numpy arrays
frac = np.asarray(fr, dtype=np.float64)
dur = np.asarray(du, dtype=np.float64)
is_spectral = np.asarray(is_spec, dtype=np.uint8)
Expand Down
Loading