Skip to content

Commit f2dd477

Browse files
committed
remove extra setup python
1 parent 174b52a commit f2dd477

File tree

1 file changed

+35
-36
lines changed

1 file changed

+35
-36
lines changed

.github/workflows/tests.yml

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: tests
33
on:
44
workflow_dispatch:
55
push:
6-
branches: ['main', 'dev-*', 'dev']
6+
branches: ["main", "dev-*", "dev"]
77
pull_request:
88
release:
99
types: [published]
@@ -15,16 +15,16 @@ jobs:
1515
strategy:
1616
matrix:
1717
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"
2828

2929
steps:
3030
- uses: actions/checkout@v3
@@ -74,30 +74,30 @@ jobs:
7474
pytest vetiver -m 'rsc_test'
7575
7676
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'
101101
102102
test-no-extras:
103103
name: "Test no exra ml frameworks"
@@ -141,7 +141,6 @@ jobs:
141141
- name: Checkout Code
142142
uses: actions/checkout@v3
143143

144-
- name: Setup Python
145144
- name: Install uv and Python
146145
uses: astral-sh/setup-uv@v5
147146
with:

0 commit comments

Comments
 (0)