Skip to content

Commit ab9c382

Browse files
committed
Add weekly tests using pins main branch
This should resonably ensure that vetiver can react to to changes in pins API. closes #40
1 parent fcc92f2 commit ab9c382

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

.github/workflows/weekly.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Weekly tests to catch changes in upstream dependencies like pins
2+
# that break vetiver e.g. changes in pins could break either one or
3+
# both of:
4+
# 1. pypi release
5+
# 2. main branch version
6+
7+
name: Weekly Tests
8+
9+
on:
10+
workflow_dispatch:
11+
schedule:
12+
# At 00:00 on Monday
13+
- cron: 0 0 * * MON
14+
15+
jobs:
16+
vetiver_main_pins_main:
17+
name: 'vetiver main, pins main'
18+
if: github.repository == 'tidymodels/vetiver-python'
19+
runs-on: ubuntu-latest
20+
21+
strategy:
22+
matrix:
23+
# Minimum and Maximum supported versions
24+
python-version: ['3.7', '3.10']
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
33+
- name: Install dependencies
34+
run: |
35+
python -m pip install --upgrade pip
36+
python -m pip install 'vetiver[dev,torch]'
37+
python -m pip install --upgrade git+https://github.com/rstudio/pins-python
38+
39+
- name: Run Tests
40+
run: |
41+
pytest
42+
43+
- name: Upload coverage
44+
uses: codecov/codecov-action@v2
45+
46+
vetiver_pypi_pins_main:
47+
name: 'vetiver pypi, pins main'
48+
if: github.repository == 'tidymodels/vetiver-python'
49+
runs-on: ubuntu-latest
50+
51+
strategy:
52+
matrix:
53+
# Minimum and Maximum supported versions
54+
python-version: ['3.7', '3.10']
55+
56+
steps:
57+
- uses: actions/checkout@v2
58+
59+
- uses: actions/setup-python@v2
60+
with:
61+
python-version: ${{ matrix.python-version }}
62+
63+
- name: Install dependencies
64+
run: |
65+
python -m pip install --upgrade pip
66+
python -m pip install -e '.[dev,torch]'
67+
python -m pip install --upgrade git+https://github.com/rstudio/pins-python
68+
69+
- name: Run Tests
70+
run: |
71+
pytest

0 commit comments

Comments
 (0)