Consistent makefile for all cdd-*; WASM support doc #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.9" | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install the project | |
| run: | | |
| uv venv --python ${{ matrix.python-version }} | |
| uv pip install -e ".[dev]" pytest pytest-cov interrogate | |
| - name: Run tests & update badges | |
| run: | | |
| uv run python scripts/update_badges.py | |
| git diff --exit-code README.md || echo "README.md coverage badges are outdated!" | |
| - name: Build WASM | |
| run: make build_wasm |