@@ -3,7 +3,7 @@ name: tests
3
3
on :
4
4
workflow_dispatch :
5
5
push :
6
- branches : [' main', ' dev-*', ' dev' ]
6
+ branches : [" main", " dev-*", " dev" ]
7
7
pull_request :
8
8
release :
9
9
types : [published]
@@ -15,16 +15,16 @@ jobs:
15
15
strategy :
16
16
matrix :
17
17
include :
18
- - os : ' macos-latest'
19
- python-version : ' 3.9'
20
- - os : ' windows-latest'
21
- python-version : ' 3.10'
22
- - os : ' ubuntu-latest'
23
- python-version : ' 3.11'
24
- - os : ' ubuntu-latest'
25
- python-version : ' 3.12'
26
- - os : ' ubuntu-latest'
27
- python-version : ' 3.13'
18
+ - os : " macos-latest"
19
+ python-version : " 3.9"
20
+ - os : " windows-latest"
21
+ python-version : " 3.10"
22
+ - os : " ubuntu-latest"
23
+ python-version : " 3.11"
24
+ - os : " ubuntu-latest"
25
+ python-version : " 3.12"
26
+ - os : " ubuntu-latest"
27
+ python-version : " 3.13"
28
28
29
29
steps :
30
30
- uses : actions/checkout@v3
@@ -74,30 +74,30 @@ jobs:
74
74
pytest vetiver -m 'rsc_test'
75
75
76
76
test-docker :
77
- name : " Test Docker"
78
- runs-on : ubuntu-latest
79
- steps :
80
- - uses : actions/checkout@v3
81
- - name : Install uv and Python
82
- uses : astral-sh/setup-uv@v5
83
- with :
84
- python-version : " 3.10"
85
- - name : Install dependencies
86
- run : |
87
- uv pip install --upgrade pip
88
- uv pip install ".[dev]"
89
- uv pip install --upgrade git+https://github.com/rstudio/vetiver-python@${{ github.sha }}
90
- - name : run Docker
91
- run : |
92
- python script/setup-docker/docker.py
93
- pip freeze > vetiver_requirements.txt
94
- docker build -t mock .
95
- docker run -d -v $PWD/pinsboard:/vetiver/pinsboard -p 8080:8080 mock
96
- sleep 5
97
- curl -s --retry 10 --retry-connrefused http://0.0.0.0:8080
98
- - name : Run tests
99
- run : |
100
- pytest vetiver -m 'docker'
77
+ name : " Test Docker"
78
+ runs-on : ubuntu-latest
79
+ steps :
80
+ - uses : actions/checkout@v3
81
+ - name : Install uv and Python
82
+ uses : astral-sh/setup-uv@v5
83
+ with :
84
+ python-version : " 3.10"
85
+ - name : Install dependencies
86
+ run : |
87
+ uv pip install --upgrade pip
88
+ uv pip install ".[dev]"
89
+ uv pip install --upgrade git+https://github.com/rstudio/vetiver-python@${{ github.sha }}
90
+ - name : run Docker
91
+ run : |
92
+ python script/setup-docker/docker.py
93
+ pip freeze > vetiver_requirements.txt
94
+ docker build -t mock .
95
+ docker run -d -v $PWD/pinsboard:/vetiver/pinsboard -p 8080:8080 mock
96
+ sleep 5
97
+ curl -s --retry 10 --retry-connrefused http://0.0.0.0:8080
98
+ - name : Run tests
99
+ run : |
100
+ pytest vetiver -m 'docker'
101
101
102
102
test-no-extras :
103
103
name : " Test no exra ml frameworks"
@@ -141,7 +141,6 @@ jobs:
141
141
- name : Checkout Code
142
142
uses : actions/checkout@v3
143
143
144
- - name : Setup Python
145
144
- name : Install uv and Python
146
145
uses : astral-sh/setup-uv@v5
147
146
with :
0 commit comments