Skip to content

ignore pyhf deprecationwarnings #510

ignore pyhf deprecationwarnings

ignore pyhf deprecationwarnings #510

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: SModelS Validation
on:
push:
branches: [ main, develop, release/* ]
pull_request:
branches: [ main, develop ]
# Enables manual action execution.
workflow_dispatch:
jobs:
test:
name: OS ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
timeout-minutes: 420
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
os: [ubuntu-22.04, ubuntu-24.04, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f smodels/share/requirements.txt ]; then
python -m pip install -r smodels/share/requirements.txt;
# silly workaround for python3.7, we need to use old numpy versions
# echo "numpy>=1.18.0,!=1.21.*" > modded.txt;
# cat smodels/share/requirements.txt | grep -v numpy >> modded.txt;
# python -m pip install -r modded.txt;
fi
if [ -f unittests/test_requirements.txt ]; then python -m pip install -r unittests/test_requirements.txt; fi
python -m pip install -e .
- name: Test with unittest
run: |
cd unittests
make reduced