Skip to content

Migration to lightning 2.0 / torch 2.0 #867

Migration to lightning 2.0 / torch 2.0

Migration to lightning 2.0 / torch 2.0 #867

name: Local installation
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test_installation:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install OML
run: |
python -m pip install --upgrade pip
python3 -m pip install -e .
- name: Check is importable
run: |
python3 -c "from oml.losses.triplet import TripletLoss"