File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 6
6
push :
7
7
branches : [ "medcat-v1/production", "medcat-v1/v[0-9]+.[0-9]+.post" ]
8
8
9
- # release:
10
- # types: [ published , edited ]
9
+ release :
10
+ types : [ published , edited ]
11
+
11
12
defaults :
12
13
run :
13
14
working-directory : ./medcat-v1
16
17
17
18
runs-on : ubuntu-24.04
18
19
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
+
21
24
22
25
steps :
23
26
- name : Checkout production
34
37
- name : Run UATs
35
38
run : |
36
39
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
38
41
pip install -r requirements-dev.txt
39
42
all_files=$(git ls-files | grep '^tests/.*\.py$' | grep -v '/__init__\.py$' | sed 's/\.py$//' | sed 's/\//./g')
40
43
num_files=$(echo "$all_files" | wc -l)
53
56
54
57
- name : Build a binary wheel and a source tarball
55
58
run : >-
56
- SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MEDCAT="1.16.1 "
59
+ SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MEDCAT="1.16.3 "
57
60
python -m
58
61
build
59
62
--sdist
You can’t perform that action at this time.
0 commit comments