Skip to content

Commit deddbf6

Browse files
committed
release-test: newer pip
fixes Python 3.10 + manylinux wheel download & caching
1 parent cae5349 commit deddbf6

File tree

4 files changed

+57
-14
lines changed

4 files changed

+57
-14
lines changed

.github/workflows/ci-tests.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ jobs:
127127
with:
128128
singularity-version: ${{ env.singularity_version }}
129129

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-
133130
- name: Set up Python
134131
uses: actions/setup-python@v2
135132
with:
@@ -150,11 +147,3 @@ jobs:
150147
env:
151148
RELEASE_SKIP: head
152149
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

.github/workflows/tag_to_publish.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DEVPKGS=diff_cover black pylint pep257 pydocstyle flake8 tox tox-pyenv \
3232
-rtest-requirements.txt -rmypy-requirements.txt
3333
DEBDEVPKGS=pep8 python-autopep8 pylint python-coverage pydocstyle sloccount \
3434
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}'))
3636
mkfile_dir := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
3737
UNAME_S=$(shell uname -s)
3838

release-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ else
1818
HEAD=$(git rev-parse HEAD)
1919
fi
2020
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
2323
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
2424

2525
rm -Rf testenv? || /bin/true

0 commit comments

Comments
 (0)