explicitly specify torch dtype #79
This file contains 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: 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: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
os: | |
- "windows-latest" | |
- "macos-latest" | |
- "ubuntu-latest" | |
# Based on peps #3763 (https://github.com/python/peps/pull/3763) via | |
# setup-python #850 (https://github.com/actions/setup-python/issues/850) | |
exclude: | |
- { python-version: "3.8", os: "macos-latest" } | |
- { python-version: "3.9", os: "macos-latest" } | |
include: | |
- { python-version: "3.8", os: "macos-13" } | |
- { python-version: "3.9", os: "macos-13" } | |
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 pip | |
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 |