Skip to content

Commit f1fa032

Browse files
authored
Medcat v1 release hotfix (#78)
* Allow v1 production workflow upon releases * Bump release version
1 parent 019a759 commit f1fa032

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/medcat-v1_production.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ on:
66
push:
77
branches: [ "medcat-v1/production", "medcat-v1/v[0-9]+.[0-9]+.post" ]
88

9-
# release:
10-
# types: [ published , edited ]
9+
release:
10+
types: [ published , edited ]
11+
1112
defaults:
1213
run:
1314
working-directory: ./medcat-v1
@@ -16,8 +17,10 @@ jobs:
1617

1718
runs-on: ubuntu-24.04
1819
concurrency: build-n-publish-to-pypi
19-
if: |
20-
github.repository == 'CogStack/cogstack-nlp'
20+
if: |
21+
github.repository == 'CogStack/cogstack-nlp' &&
22+
(github.event_name != 'release' || startsWith(github.event.release.tag_name, 'medcat-v1'))
23+
2124
2225
steps:
2326
- name: Checkout production
@@ -34,7 +37,7 @@ jobs:
3437
- name: Run UATs
3538
run: |
3639
python -m pip install --upgrade pip
37-
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MEDCAT="1.16.1" # NOTE: This is where the project verison is set
40+
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MEDCAT="1.16.3" # NOTE: This is where the project verison is set
3841
pip install -r requirements-dev.txt
3942
all_files=$(git ls-files | grep '^tests/.*\.py$' | grep -v '/__init__\.py$' | sed 's/\.py$//' | sed 's/\//./g')
4043
num_files=$(echo "$all_files" | wc -l)
@@ -53,7 +56,7 @@ jobs:
5356
5457
- name: Build a binary wheel and a source tarball
5558
run: >-
56-
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MEDCAT="1.16.1"
59+
SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MEDCAT="1.16.3"
5760
python -m
5861
build
5962
--sdist

0 commit comments

Comments
 (0)