-
Notifications
You must be signed in to change notification settings - Fork 33
29 lines (25 loc) · 934 Bytes
/
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
name: tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install tqdm numpy numba parameterized xarray xskillscore timm jsbeautifier pynvml h5py wandb ruamel.yaml moviepy tensorly tensorly-torch
python -m pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
python -m pip install torch_harmonics
python -m pip install git+https://github.com/NVIDIA/modulus.git
- name: Install package
run: |
python -m pip install -e .
- name: Test with pytest
run: |
python -m pip install pytest pytest-cov parameterized
python -m pytest ./tests