Skip to content

Commit 1acf3e6

Browse files
committed
use released tag on gh to include tests
1 parent de75674 commit 1acf3e6

1 file changed

Lines changed: 28 additions & 4 deletions

File tree

.github/workflows/weekly.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,19 @@ jobs:
6464
python-version: ['3.10']
6565

6666
steps:
67-
- uses: actions/checkout@v2
67+
- name: Get latest release with tag from GitHub API
68+
id: latestrelease
69+
run: |
70+
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/has2k1/plotnine/releases/latest | jq '.tag_name' | sed 's/\"//g')"
71+
72+
- name: Confirm Release Tag
73+
run: |
74+
echo ${{ steps.latestrelease.outputs.releasetag }}
75+
76+
- name: Checkout Code
77+
uses: actions/checkout@v3
78+
with:
79+
ref: ${{ steps.latestrelease.outputs.releasetag }}
6880

6981
- uses: actions/setup-python@v2
7082
with:
@@ -73,7 +85,7 @@ jobs:
7385
- name: Install dependencies
7486
run: |
7587
python -m pip install --upgrade pip
76-
python -m pip install -upgrade 'vetiver[all]'
88+
python -m pip install .[all]
7789
python -m pip install --upgrade git+https://github.com/rstudio/pins-python
7890
7991
- name: run RStudio Connect
@@ -98,7 +110,19 @@ jobs:
98110
python-version: ['3.10']
99111

100112
steps:
101-
- uses: actions/checkout@v2
113+
- name: Get latest release with tag from GitHub API
114+
id: latestrelease
115+
run: |
116+
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/has2k1/plotnine/releases/latest | jq '.tag_name' | sed 's/\"//g')"
117+
118+
- name: Confirm Release Tag
119+
run: |
120+
echo ${{ steps.latestrelease.outputs.releasetag }}
121+
122+
- name: Checkout Code
123+
uses: actions/checkout@v3
124+
with:
125+
ref: ${{ steps.latestrelease.outputs.releasetag }}
102126

103127
- uses: actions/setup-python@v2
104128
with:
@@ -107,7 +131,7 @@ jobs:
107131
- name: Install dependencies
108132
run: |
109133
python -m pip install --upgrade pip
110-
python -m pip install --upgrade 'vetiver[all]'
134+
python -m pip install .[all]
111135
python -m pip install --upgrade git+https://github.com/rstudio/rsconnect-python
112136
113137
- name: run RStudio Connect

0 commit comments

Comments
 (0)