Skip to content

[FIX] Improve CI speed by explicitely installing torch cpu only #209

[FIX] Improve CI speed by explicitely installing torch cpu only

[FIX] Improve CI speed by explicitely installing torch cpu only #209

Workflow file for this run

name: Run fugw pytests
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
unittest:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
version_python: "3.8"
- os: ubuntu-latest
version_python: "3.9"
- os: ubuntu-latest
version_python: "3.10"
- os: ubuntu-latest
version_python: "3.11"
- os: macos-latest
version_python: "3.10"
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.version_python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
python -m pip install -e .[test]
- name: Lint with pflake8
run: |
pflake8 src tests examples
- name: Test with pytest
run: |
pytest