Skip to content

Commit dd81766

Browse files
committed
add rsconnect tests
1 parent 65b6983 commit dd81766

2 files changed

Lines changed: 96 additions & 5 deletions

File tree

.github/workflows/weekly.yml

Lines changed: 90 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
strategy:
2121
matrix:
2222
# Minimum and Maximum supported versions
23-
python-version: ['3.7', '3.10']
23+
python-version: ['3.10']
24+
2425

2526
steps:
2627
- uses: actions/checkout@v2
@@ -32,10 +33,18 @@ jobs:
3233
- name: Install dependencies
3334
run: |
3435
python -m pip install --upgrade pip
35-
python -m pip install 'vetiver[dev,torch]'
36+
python -m pip install '.[all]'
3637
python -m pip install --upgrade git+https://github.com/rstudio/pins-python
3738
38-
- name: Run Tests
39+
- name: run RStudio Connect
40+
run: |
41+
docker-compose up --build -d
42+
make dev
43+
env:
44+
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
45+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
46+
47+
- name: Run tests
3948
run: |
4049
pytest
4150
@@ -50,7 +59,7 @@ jobs:
5059
strategy:
5160
matrix:
5261
# Minimum and Maximum supported versions
53-
python-version: ['3.7', '3.10']
62+
python-version: ['3.10']
5463

5564
steps:
5665
- uses: actions/checkout@v2
@@ -59,12 +68,88 @@ jobs:
5968
with:
6069
python-version: ${{ matrix.python-version }}
6170

71+
- name: run RStudio Connect
72+
run: |
73+
docker-compose up --build -d
74+
make dev
75+
env:
76+
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
77+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
78+
6279
- name: Install dependencies
6380
run: |
6481
python -m pip install --upgrade pip
65-
python -m pip install -e '.[dev,torch]'
82+
python -m pip install -upgrade 'vetiver[all]'
6683
python -m pip install --upgrade git+https://github.com/rstudio/pins-python
6784
6885
- name: Run Tests
6986
run: |
7087
pytest
88+
89+
vetiver_pypi_rsconnect_latest:
90+
name: 'vetiver pypi, rsconnect latest'
91+
runs-on: ubuntu-latest
92+
93+
strategy:
94+
matrix:
95+
# Minimum and Maximum supported versions
96+
python-version: ['3.10']
97+
98+
steps:
99+
- uses: actions/checkout@v2
100+
101+
- uses: actions/setup-python@v2
102+
with:
103+
python-version: ${{ matrix.python-version }}
104+
105+
- name: run RStudio Connect
106+
run: |
107+
docker-compose up --build -d
108+
make dev
109+
env:
110+
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
111+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
112+
113+
- name: Install dependencies
114+
run: |
115+
python -m pip install --upgrade pip
116+
python -m pip install --upgrade 'vetiver[all]'
117+
python -m pip install --upgrade git+https://github.com/rstudio/rsconnect-python
118+
119+
- name: Run Tests
120+
run: |
121+
pytest
122+
123+
vetiver_latest_rsconnect_latest:
124+
name: 'vetiver latest, rsconnect latest'
125+
runs-on: ubuntu-latest
126+
127+
strategy:
128+
matrix:
129+
# Minimum and Maximum supported versions
130+
python-version: ['3.10']
131+
132+
steps:
133+
- uses: actions/checkout@v2
134+
135+
- uses: actions/setup-python@v2
136+
with:
137+
python-version: ${{ matrix.python-version }}
138+
139+
- name: run RStudio Connect
140+
run: |
141+
docker-compose up --build -d
142+
make dev
143+
env:
144+
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
145+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
146+
147+
- name: Install dependencies
148+
run: |
149+
python -m pip install --upgrade pip
150+
python -m pip install '.[all]'
151+
python -m pip install --upgrade git+https://github.com/rstudio/rsconnect-python
152+
153+
- name: Run Tests
154+
run: |
155+
pytest

setup.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ install_requires =
3737
importlib-metadata>=4.4 # NOTE: Remove when python_requires>=3.8
3838

3939
[options.extras_require]
40+
all =
41+
vetiver[dev]
42+
vetiver[torch]
43+
vetiver[statsmodels]
44+
vetiver[xgboost]
45+
4046
dev =
4147
pytest
4248
pytest-cov

0 commit comments

Comments
 (0)