File tree Expand file tree Collapse file tree 2 files changed +46
-9
lines changed
Expand file tree Collapse file tree 2 files changed +46
-9
lines changed Original file line number Diff line number Diff line change 1+ name : Cloud integration
2+
3+ # see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
4+ on : [push, workflow_dispatch]
5+
6+
7+ defaults :
8+ run :
9+ shell : bash
10+
11+ jobs :
12+ pytester :
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ os : ["ubuntu-22.04", "macOS-13", "windows-2022"]
18+ python-version : ["3.10"]
19+
20+ # Timeout: https://stackoverflow.com/a/59076067/4521646
21+ timeout-minutes : 35
22+ env :
23+ TORCH_URL : " https://download.pytorch.org/whl/cpu/torch_stable.html"
24+
25+ steps :
26+ - uses : actions/checkout@v4
27+ - name : Set up Python ${{ matrix.python-version }}
28+ uses : actions/setup-python@v5
29+ with :
30+ python-version : ${{ matrix.python-version }}
31+ cache : " pip"
32+
33+ - name : Install package & dependencies
34+ run : |
35+ pip --version
36+ pip install -e '.[test,extra]' -U -q --find-links $TORCH_URL
37+ pip list
38+
39+ - name : Test integrations
40+ env :
41+ LIGHTNING_USER_ID : ${{ secrets.LIGHTNING_USER_ID }}
42+ LIGHTNING_API_KEY : ${{ secrets.LIGHTNING_API_KEY }}
43+ run : |
44+ coverage run --source litmodels -m pytest src tests -v -m cloud
45+ timeout-minutes : 5
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: CI testing
33# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44on : # Trigger the workflow on push or pull request, but only for the main branch
55 push : {}
6- pull_request_target :
6+ pull_request :
77 branches : [main]
88
99defaults :
5151 run : |
5252 coverage run --source litmodels -m pytest src tests -v -m "not cloud"
5353
54- - name : Test integrations
55- env :
56- LIGHTNING_USER_ID : ${{ secrets.LIGHTNING_USER_ID }}
57- LIGHTNING_API_KEY : ${{ secrets.LIGHTNING_API_KEY }}
58- run : |
59- coverage run --source litmodels -m pytest src tests -v -m cloud
60- timeout-minutes : 5
61-
6254 - name : Statistics
6355 run : |
6456 coverage report
You can’t perform that action at this time.
0 commit comments