Skip to content

Skip redundant full-rank decompositions #146

Skip redundant full-rank decompositions

Skip redundant full-rank decompositions #146

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.14"
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install ".[dev]"
- run: black --check --diff .
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python: "3.10"
torch: "torch==2.6.*"
- python: "3.12"
torch: "torch"
- python: "3.14"
torch: "torch"
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python }}
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install "${{ matrix.torch }}" pytest pytest-xdist
- run: python -m pip install --no-deps -e .
- run: python -m pytest -s --tb=short -n32 test
os-smoke:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.13"
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install ".[test]"
- run: python -m pytest -s --tb=short -n32 test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.14"
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install ".[test]" pytest-cov
- run: python -m pytest -s --tb=short -n32 --cov=geotorch --cov-report=xml test
- uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.14"
cache: pip
- run: python -m pip install --upgrade pip
- run: python -m pip install build pytest pytest-xdist torch twine
- run: python -m build
- run: python -m twine check dist/*
- run: python .github/scripts/check_dist.py dist/*
- name: Test installed wheel
run: |
python -m venv --system-site-packages /tmp/geotorch-wheel
/tmp/geotorch-wheel/bin/python -m pip install --no-deps dist/*.whl
cp -R test /tmp/geotorch-tests
cd /tmp
/tmp/geotorch-wheel/bin/python -m pytest -s --tb=short -n32 geotorch-tests