Skip to content

Do not run the calculation when no spectra are selected #209

Do not run the calculation when no spectra are selected

Do not run the calculation when no spectra are selected #209

Workflow file for this run

name: continuous-integration
on:
pull_request:
push:
branches:
- main
release:
jobs:
check-style:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install .[devel]
- name: Check style
run: |
ruff format --check .
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install system packages
run: |
sudo apt -y install libegl1
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install .[devel]
pip list
- name: Run tests
run: |
pytest
build-binaries:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 6
fail-fast: false
matrix:
os: [ macos-13, macos-14, windows-2019 ]
python-version: ["3.12",]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install packaging dependencies
run: |
python -m pip install --upgrade pip
pip install .[devel]
- name: Install Inno Setup
if: runner.os == 'Windows'
run: |
choco install innosetup
- name: Run PyInstaller
run: |
cd package
pyinstaller --noconfirm crispy.spec
cd ..
- name: Recursively list folder
run: |
ls -R
- name: Upload the Windows installer
uses: actions/upload-artifact@v4
if: runner.os == 'Windows'
with:
name: Crispy-${{ runner.os }}-${{ runner.arch }}-Python-${{ matrix.python-version }}
path: package\artifacts\*.exe
- name: Upload the macOS application
uses: actions/upload-artifact@v4
if: runner.os == 'macOS'
with:
name: Crispy-${{ runner.os }}-${{ runner.arch }}-Python-${{ matrix.python-version }}
path: package/artifacts/*.dmg