-
Notifications
You must be signed in to change notification settings - Fork 39
54 lines (49 loc) · 1.91 KB
/
CI.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
48
49
50
51
52
53
54
name: CI
on:
push:
branches:
- "master"
pull_request:
branches:
- "master"
schedule:
# Nightly tests run on master by default:
# Scheduled workflows run on the latest commit on the default or base branch.
# (from https://help.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events-schedule)
- cron: "0 0 * * *"
jobs:
test:
runs-on: ${{ matrix.cfg.os }}
strategy:
fail-fast: false
matrix:
cfg:
- { os: ubuntu-latest, python-version: '3.8', torch-version: 'torch>=1.8,<1.9' }
- { os: ubuntu-latest, python-version: '3.9', torch-version: 'torch>=1.8,<1.9' }
- { os: ubuntu-latest, python-version: '3.8', torch-version: 'torch>=1.9' }
- { os: ubuntu-latest, python-version: '3.9', torch-version: 'torch>=1.9' }
- { os: windows-latest, python-version: '3.9', torch-version: 'torch>=1.9' }
- { os: macos-latest, python-version: '3.9', torch-version: 'torch>=1.9' }
- { os: ubuntu-latest, python-version: '3.10', torch-version: 'torch>=1.9' }
- { os: windows-latest, python-version: '3.10', torch-version: 'torch>=1.9' }
- { os: macos-latest, python-version: '3.10', torch-version: 'torch>=1.9' }
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.cfg.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.cfg.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest "${{ matrix.cfg.torch-version }}" pyevtk h5py mmh3
- name: Install package
run: |
python setup.py install
- name: Unit tests with pytest
run: |
py.test
- name: Integration tests
run: |
lettuce --no-cuda convergence
lettuce --no-cuda benchmark