Skip to content

Add Rice distribution #51

Add Rice distribution

Add Rice distribution #51

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
jobs:
run:
name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }}
runs-on: ${{ matrix.os }}
# skip build of commit contains 'skip ci'
if: "!contains(github.event.head_commit.message, 'skip ci')"
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
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 Hatch
run: |
pip install --upgrade hatch
pip install hatch-mkdocs #This is a workaround for https://github.com/pypa/hatch/issues/1379
- name: Run static analysis
run: hatch fmt --check
- name: Run tests
run: hatch run cov