-
Notifications
You must be signed in to change notification settings - Fork 34
48 lines (40 loc) · 1.56 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: MNIST1D tests
on: [push]
jobs:
build: #building the library locally
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dev version locally
run: python -m pip install '.[dev]'
- name: test dev version locally
run: python -m pytest .
- name: install notebooks
run: python -m pip install notebook jupyter
- name: run minimal example notebooks
run: jupyter nbconvert --execute --to html notebooks/mnist1d_tiny.ipynb
install: #installing the library as if one would not want to git-clone it
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dev version locally
run: python -m pip install git+https://github.com/psteinb/mnist1d.git@psteinb-pyprojtoml