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 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+
1112defaults :
1213 run :
1314 working-directory : ./medcat-v1
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
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)
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
You can’t perform that action at this time.
0 commit comments