Skip to content

TEST: replace IS_CHECK_FACTORIZATION by an arg to minimize_lbfgsb to … #46

TEST: replace IS_CHECK_FACTORIZATION by an arg to minimize_lbfgsb to …

TEST: replace IS_CHECK_FACTORIZATION by an arg to minimize_lbfgsb to … #46

Workflow file for this run

name: CI
on:
push:
# on every branch
branches:
- '*'
env:
PIP_CACHE_DIR: ${{ github.workspace }}/.cache/pip
QT_DEBUG_PLUGINS: 1
QT_QPA_PLATFORM: offscreen
jobs:
static_analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install dependencies
run: pip install -r requirements_dev.txt
- name: Run pre-commit
run: |
pip install pre-commit
pre-commit run --all-files
continue-on-error: true
- name: Upload pre-commit report
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: pre-commit-report
path: pre-commit-report
test:
runs-on: ubuntu-latest
env:
NUMBA_DISABLE_JIT : 1
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install dependencies
run: pip install -r requirements_dev.txt
- name: Install project
run: pip install -e .
- name: Set up xvfb
run: |
sudo apt-get update
sudo apt-get install -y xvfb
sleep 3
- name: Run tests with coverage
run: |
xvfb-run py.test -s --cov=lbfgsb --cov-report xml --cov-report html --cov-report term --cov-config=.coveragerc --color=yes
continue-on-error: false
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
tox:
runs-on: ubuntu-latest
strategy:
max-parallel: 6
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Run tox
run: tox
- name: Upload distribution artifacts
uses: actions/upload-artifact@v4
with:
name: ubuntu-python-package-${{matrix.python-version}}
path: dist/*.whl