Skip to content

Commit 0aec1be

Browse files
authored
Fix getting version
1 parent 642b15c commit 0aec1be

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ jobs:
5757
with:
5858
# Fetch all history instead of the latest commit
5959
fetch-depth: 0
60+
- name: Install dependencies
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install -r requirements.txt
64+
pip install -r test_requirements.txt
6065
- name: Write version file
6166
run: python scripts/write-version.py
6267
- name: Get and set version in env
@@ -105,10 +110,15 @@ jobs:
105110
with:
106111
# Fetch all history instead of the latest commit
107112
fetch-depth: 0
108-
- name: Get and set version in env
113+
- name: Install dependencies
109114
run: |
110-
python scripts/write-version.py
111-
echo "CURRENT_VERSION=$( python -c 'from buildrunner.version import __version__; print(__version__)' )" >> $GITHUB_ENV
115+
python -m pip install --upgrade pip
116+
pip install -r requirements.txt
117+
pip install -r test_requirements.txt
118+
- name: Write version file
119+
run: python scripts/write-version.py
120+
- name: Get and set version in env
121+
run: echo "CURRENT_VERSION=$( python -c 'from buildrunner.version import __version__; print(__version__)' )" >> $GITHUB_ENV
112122
- name: Print current version
113123
run: echo CURRENT_VERSION ${{ env.CURRENT_VERSION }}
114124
- name: Docker Tags

0 commit comments

Comments
 (0)