Skip to content

Merge pull request #964 from PMEAL/adding_gravity_to_ibip #561

Merge pull request #964 from PMEAL/adding_gravity_to_ibip

Merge pull request #964 from PMEAL/adding_gravity_to_ibip #561

Workflow file for this run

name: Tests
on:
push:
pull_request:
branches:
- release
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
max-parallel: 12
matrix:
python-version: ['3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-latest, windows-latest]
include:
- os: ubuntu-latest
path: ~/.cache/pip
- os: macos-latest
path: ~/Library/Caches/pip
- os: windows-latest
path: ~\AppData\Local\pip\Cache
steps:
- name: Cache pip
uses: actions/cache@v4
with:
path: ${{ matrix.path }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- 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 (pip) (macOS)
if: matrix.os == 'macos-latest'
run: |
pip install -e .[test,extras-macos]
- name: Install dependencies (pip) (Windows, Linux)
if: matrix.os != 'macos-latest'
run: |
pip install -e .[test,extras]
- name: Running tests
run:
pytest --cov=. --cov-report=xml
- name: Upload coverage to Codecov
if: (matrix.python-version == 3.12) && (matrix.os == 'ubuntu-latest')
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella