Skip to content

Commit 6e00e23

Browse files
authored
CU-869awy4ux: Set pretend version before installation of package. (#192)
This should fix the installation picking up (and trying to infer a version) from tags unrelated to medcat-den. Currently, the workflow is picking up trainer's medcat-trainer/v3.1.0 tag and getting confused since that does not work for the regex (which expected medcat-den/v*). And as such, the workflow is failing. See for example: https://github.com/CogStack/cogstack-nlp/actions/runs/18660829454/job/53200931476
1 parent 2bee1c2 commit 6e00e23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/medcat-den_main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ jobs:
6464
python -m pip install --upgrade pip
6565
python -m pip install --upgrade build
6666
67-
- name: Install package in development mode
68-
run: |
69-
pip install -e .
70-
7167
- name: Set timestamp-based dev version
7268
run: |
7369
TS=$(date -u +"%Y%m%d%H%M%S")
7470
echo "SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MEDCAT_DEN=0.2.2.dev${TS}" >> $GITHUB_ENV
7571
72+
- name: Install package in development mode
73+
run: |
74+
pip install -e .
75+
7676
- name: Build package
7777
run: |
7878
python -m build

0 commit comments

Comments
 (0)