Skip to content

feat: HyperSHAP

feat: HyperSHAP #314

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["macos-latest", "ubuntu-latest"] # for now, only macOS and Ubuntu are supported for rye
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout code 📂
uses: actions/checkout@v4
- name: Setup Rye 🌾
id: setup-rye
uses: eifinger/setup-rye@v3
with:
version: "0.35.0"
- name: Pin python-version ${{ matrix.python-version }} 📌
run: rye pin ${{ matrix.python-version }}
- name: Cache dependencies 📦
uses: actions/cache@v4
with:
path: ./venv
key: venv-${{ matrix.python-version }}-${{ matrix.os }}-${{ hashFiles('requirements.lock') }}-${{ hashFiles('requirements-dev.lock') }}
- name: Install dependencies 🛠️
run: |
rye sync
- name: Run tests 🧪
run: |
rye test
- name: Upload coverage report to Codecov 📈
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests