File tree Expand file tree Collapse file tree 4 files changed +57
-14
lines changed Expand file tree Collapse file tree 4 files changed +57
-14
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,6 @@ jobs:
127
127
with :
128
128
singularity-version : ${{ env.singularity_version }}
129
129
130
- - name : install lxml dev packages (due to lack of Python 3.10 wheels)
131
- run : sudo apt-get install -y libxml2-dev libxslt-dev
132
-
133
130
- name : Set up Python
134
131
uses : actions/setup-python@v2
135
132
with :
@@ -150,11 +147,3 @@ jobs:
150
147
env :
151
148
RELEASE_SKIP : head
152
149
run : ./release-test.sh
153
-
154
- - name : Publish package
155
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
156
- uses : pypa/gh-action-pypi-publish@release/v1
157
- with :
158
- user : __token__
159
- password : ${{ secrets.PYPI_API_TOKEN }}
160
- packages_dir : testenv3_3/dist
Original file line number Diff line number Diff line change
1
+ name : Publish tag to PyPI
2
+
3
+ on :
4
+ push :
5
+ tags : [ 'v*' ]
6
+
7
+ concurrency :
8
+ group : tag-${{github.ref}}
9
+ cancel-in-progress : true
10
+
11
+ env :
12
+ singularity_version : 3.6.4
13
+
14
+ jobs :
15
+ release_to_pypi :
16
+ name : cwl-utils release test
17
+
18
+ runs-on : ubuntu-20.04
19
+
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+
23
+ - name : Set up Singularity
24
+ uses : eWaterCycle/setup-singularity@v7
25
+ with :
26
+ singularity-version : ${{ env.singularity_version }}
27
+
28
+ - name : Set up Python
29
+ uses : actions/setup-python@v2
30
+ with :
31
+ python-version : " 3.10" # quoted, otherwise that turns into the number 3.1
32
+
33
+ - name : Cache for pip
34
+ uses : actions/cache@v2
35
+ with :
36
+ path : ~/.cache/pip
37
+ key : ${{ runner.os }}-pip-release-${{ hashFiles('requirements.txt', 'test-requirements.txt') }}
38
+
39
+ - name : Install packages
40
+ run : |
41
+ pip install -U pip setuptools wheel
42
+ pip install virtualenv
43
+
44
+ - name : Release test
45
+ env :
46
+ RELEASE_SKIP : head
47
+ run : ./release-test.sh
48
+
49
+ - name : Publish package
50
+ uses : pypa/gh-action-pypi-publish@release/v1
51
+ with :
52
+ user : __token__
53
+ password : ${{ secrets.PYPI_API_TOKEN }}
54
+ packages_dir : testenv3/dist
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ DEVPKGS=diff_cover black pylint pep257 pydocstyle flake8 tox tox-pyenv \
32
32
-rtest-requirements.txt -rmypy-requirements.txt
33
33
DEBDEVPKGS =pep8 python-autopep8 pylint python-coverage pydocstyle sloccount \
34
34
python-flake8 python-mock shellcheck
35
- VERSION =$(shell awk '{print $3}' < cwl_utils/__meta__.py )
35
+ VERSION =v $(shell echo $$( tail -n 1 cwl_utils/__meta__.py | awk '{print $$3}' ) )
36
36
mkfile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
37
37
UNAME_S =$(shell uname -s)
38
38
Original file line number Diff line number Diff line change 18
18
HEAD=$( git rev-parse HEAD)
19
19
fi
20
20
run_tests=" bin/py.test --pyargs ${module} "
21
- pipver=20.3 # minimum required version of pip for Python 3.10
22
- setuptoolsver=50.0.0 # required for Python 3.10
21
+ pipver=20.3.2 # minimum required version of pip for Python 3.10
22
+ setuptoolsver=50.0.0 # required for Python 3.10
23
23
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null && pwd ) "
24
24
25
25
rm -Rf testenv? || /bin/true
You can’t perform that action at this time.
0 commit comments