Allow choosing between CPU and GPU Pytorch #54
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
# SPDX-FileCopyrightText: Enno Hermann | |
# | |
# SPDX-License-Identifier: MIT | |
name: Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup uv | |
uses: ./.github/actions/setup-uv | |
- name: Lint check | |
run: uv run --only-dev pre-commit run --all-files | |
- name: Mypy | |
run: uv run --extra cpu mypy --strict src/ |