Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 116 additions & 8 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ name: Weekly Tests

on:
schedule:
# At 00:00 on Monday
- cron: "03 14 * * FRI"
- cron: "03 14 * * MON"

jobs:
vetiver_main_pins_main:
Expand All @@ -20,7 +19,8 @@ jobs:
strategy:
matrix:
# Minimum and Maximum supported versions
python-version: ['3.7', '3.10']
python-version: ['3.10']


steps:
- uses: actions/checkout@v2
Expand All @@ -32,10 +32,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install 'vetiver[dev,torch]'
python -m pip install '.[all]'
python -m pip install --upgrade git+https://github.com/rstudio/pins-python

- name: Run Tests
- name: run RStudio Connect
run: |
docker-compose up --build -d
make dev
env:
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Run tests
run: |
pytest

Expand All @@ -50,10 +58,22 @@ jobs:
strategy:
matrix:
# Minimum and Maximum supported versions
python-version: ['3.7', '3.10']
python-version: ['3.10']

steps:
- uses: actions/checkout@v2
- name: Get latest release with tag from GitHub API
id: latestrelease
run: |
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/rstudio/vetiver-python/releases/latest | jq '.tag_name' | sed 's/\"//g')"

- name: Confirm Release Tag
run: |
echo ${{ steps.latestrelease.outputs.releasetag }}

- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ steps.latestrelease.outputs.releasetag }}

- uses: actions/setup-python@v2
with:
Expand All @@ -62,9 +82,97 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e '.[dev,torch]'
python -m pip install .[dev]
python -m pip install --upgrade git+https://github.com/rstudio/pins-python

- name: run RStudio Connect
run: |
docker-compose up --build -d
make dev
env:
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Run Tests
run: |
pytest

vetiver_pypi_rsconnect_latest:
name: 'vetiver pypi, rsconnect latest'
runs-on: ubuntu-latest

strategy:
matrix:
# Minimum and Maximum supported versions
python-version: ['3.10']

steps:
- name: Get latest release with tag from GitHub API
id: latestrelease
run: |
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/rstudio/vetiver-python/releases/latest | jq '.tag_name' | sed 's/\"//g')"

- name: Confirm Release Tag
run: |
echo ${{ steps.latestrelease.outputs.releasetag }}

- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ steps.latestrelease.outputs.releasetag }}

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
python -m pip install --upgrade git+https://github.com/rstudio/rsconnect-python

- name: run RStudio Connect
run: |
docker-compose up --build -d
make dev
env:
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Run Tests
run: |
pytest

vetiver_latest_rsconnect_latest:
name: 'vetiver latest, rsconnect latest'
runs-on: ubuntu-latest

strategy:
matrix:
# Minimum and Maximum supported versions
python-version: ['3.10']

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install '.[all]'
python -m pip install --upgrade git+https://github.com/rstudio/rsconnect-python

- name: run RStudio Connect
run: |
docker-compose up --build -d
make dev
env:
RSC_LICENSE: ${{ secrets.RSC_LICENSE }}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Run Tests
run: |
pytest
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ install_requires =
importlib-metadata>=4.4 # NOTE: Remove when python_requires>=3.8

[options.extras_require]
all =
vetiver[dev]
vetiver[torch]
vetiver[statsmodels]
vetiver[xgboost]

dev =
pytest
pytest-cov
Expand Down