Skip to content

Commit 306fda0

Browse files
committed
move integrations to separate workflow
1 parent 82b23fa commit 306fda0

File tree

2 files changed

+46
-9
lines changed

2 files changed

+46
-9
lines changed

.github/workflows/ci-cloud.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

.github/workflows/ci-testing.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI testing
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # 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

99
defaults:
@@ -51,14 +51,6 @@ jobs:
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

0 commit comments

Comments
 (0)