Skip to content

update release action #178

update release action

update release action #178

Workflow file for this run

name: Pull-request CI
on: push
jobs:
run-tests:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.8, 3.9, '3.10', 3.11]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
- run: poetry install --with dev --all-extras
- name: Install pytorch CPU for ubuntu-latest
run: poetry run pip uninstall -y torch torchvision; poetry run pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
if: matrix.os == 'ubuntu-latest'
- run: poetry run black --check .
- run: poetry run mypy .
- run: poetry run pytest --cov