Skip to content

Commit 31af353

Browse files
committed
better testing
1 parent ebe59b2 commit 31af353

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

.github/workflows/flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v2
17-
- name: Set up Python 3.8
17+
- name: Set up Python 3.9
1818
uses: actions/setup-python@v2
1919
with:
20-
python-version: 3.8
20+
python-version: 3.9
2121
- name: Install flake8
2222
run: pip install flake8
2323
- name: Run flake8

.github/workflows/isort.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v2
16-
- name: Set up Python 3.8
16+
- name: Set up Python 3.9
1717
uses: actions/setup-python@v2
1818
with:
19-
python-version: 3.8
19+
python-version: 3.9
2020
- name: Install isort
2121
run: pip install isort==5.6.4
2222

.github/workflows/tests.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,34 @@ on:
99
jobs:
1010
build:
1111

12-
runs-on: ubuntu-latest
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-20.04, macOS-10.15, windows-2019]
16+
python-version: [3.6, 3.7, 3.8, 3.9]
17+
pytorch-version: ["1.6", "1.7", "1.8", "1.9", "1.10", "1.11"]
1318

1419
steps:
1520
- name: Checkout
1621
uses: actions/checkout@v2
17-
- name: Set up Python 3.8
22+
23+
- name: Set up Python ${{ matrix.python-version }}
1824
uses: actions/setup-python@v2
1925
with:
20-
python-version: 3.8
26+
python-version: ${{ matrix.python-version }}
27+
2128
- name: Install dependencies
2229
run: |
2330
python -m pip install --upgrade pip
31+
pip install torch==${{ matrix.pytorch-version }}
2432
pip install -r requirements.txt
2533
pip install -r requirements_tests.txt
34+
2635
- name: Install package
2736
run: |
2837
python setup.py install sdist bdist_wheel
2938
twine check dist/*
39+
3040
- name: Test with pytest
3141
run: |
3242
pip install pytest coverage

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pytorch-lightning)](https://pypi.org/project/stochman/)
55
[![PyPI Status](https://badge.fury.io/py/stochman.svg)](https://badge.fury.io/py/stochman)
66
[![PyPI Status](https://pepy.tech/badge/stochman)](https://pepy.tech/badge/stochman)
7+
[![license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/MachineLearningLifeScience/stochman/blob/master/LICENSE)
78

89
# StochMan - Stochastic Manifolds made easier
910

0 commit comments

Comments
 (0)