Skip to content

Commit 2462965

Browse files
committed
adjust test env
1 parent 1055323 commit 2462965

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: ['3.6', '3.7', '3.8', '3.9', '3.11']
21+
python-version: ['3.6', '3.7', '3.8', '3.9']
2222

2323
steps:
2424
- uses: actions/checkout@v3

Dockerfile.qa

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
ARG PYTHON_VERSION
@@ -14,6 +14,13 @@ RUN apt-get update
1414
# Install apt-utils
1515
RUN apt-get install -y apt-utils
1616

17+
# install setuptools
18+
RUN if [ $PYTHON_VERSION = '2.7' ] ; then \
19+
apt-get install -y python-setuptools -reinstall ;\
20+
else \
21+
apt-get install -y python3-setuptools ;\
22+
fi
23+
1724
# Install python development
1825
RUN apt-get install -y \
1926
python$PYTHON_VERSION-dev \
@@ -27,6 +34,10 @@ RUN if [ $PYTHON_VERSION = '3.7' ] ; then \
2734
elif [ $PYTHON_VERSION = '3.10' ] ; then \
2835
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ; \
2936
curl -sS https://bootstrap.pypa.io/get-pip.py | python$PYTHON_VERSION ; \
37+
elif [ $PYTHON_VERSION = '3.11' ] ; then \
38+
apt-get install -y python$PYTHON_VERSION-distutils python3-distutils-extra python3-apt --reinstall ; \
39+
curl -sS https://bootstrap.pypa.io/get-pip.py | python$PYTHON_VERSION ; \
40+
3041
else \
3142
apt-get install -y python3-distutils python3-distutils-extra python3-apt --reinstall ; \
3243
fi

requirements-dev.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ python-magic
1313

1414
# On October 4, 2022 importlib-metadata released importlib-metadata 5.0.0 and in version 5.0.0
1515
# They have Deprecated EntryPoints and that's why you are facing this error.
16-
importlib-metadata<=4.13.0
16+
importlib-metadata<=4.13.0
17+

0 commit comments

Comments
 (0)