@@ -17,19 +17,91 @@ jobs:
1717 - python-version : ' 3.7'
1818 toxenv : ' py37'
1919 - python-version : ' 3.8'
20- toxenv : ' py38,coverage,codecov '
20+ toxenv : ' py38'
2121 - python-version : ' 3.9'
2222 toxenv : ' py39'
2323 - python-version : ' 3.10'
2424 toxenv : ' py310'
2525 - python-version : ' 3.11'
2626 toxenv : ' py311'
27+ container :
28+ image : ubuntu:22.04
29+ steps :
30+ - uses : actions/checkout@v3
31+ - name : Set up container
32+ env :
33+ DEBIAN_FRONTEND : noninteractive
34+ run : |
35+ apt-get update -q
36+ apt-get install -y libterm-readline-gnu-perl locales software-properties-common
37+ locale-gen en_US.UTF-8
38+ ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
39+ - name : Install dependencies
40+ env :
41+ DEBIAN_FRONTEND : noninteractive
42+ run : |
43+ add-apt-repository -y universe
44+ add-apt-repository -y ppa:deadsnakes/ppa
45+ add-apt-repository -y ppa:gift/dev
46+ apt-get update -q
47+ apt-get install -y build-essential git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools python3-yaml
48+ - name : Install tox
49+ run : |
50+ python3 -m pip install tox
51+ - name : Run tests
52+ env :
53+ LANG : en_US.UTF-8
54+ run : |
55+ tox -e${{ matrix.toxenv }}
56+ coverage :
57+ runs-on : ubuntu-latest
58+ strategy :
59+ matrix :
60+ include :
61+ - python-version : ' 3.8'
62+ toxenv : ' py38,coverage'
63+ container :
64+ image : ubuntu:22.04
65+ steps :
66+ - uses : actions/checkout@v3
67+ - name : Set up container
68+ env :
69+ DEBIAN_FRONTEND : noninteractive
70+ run : |
71+ apt-get update -q
72+ apt-get install -y libterm-readline-gnu-perl locales software-properties-common
73+ locale-gen en_US.UTF-8
74+ ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
75+ - name : Install dependencies
76+ env :
77+ DEBIAN_FRONTEND : noninteractive
78+ run : |
79+ add-apt-repository -y universe
80+ add-apt-repository -y ppa:deadsnakes/ppa
81+ add-apt-repository -y ppa:gift/dev
82+ apt-get update -q
83+ apt-get install -y build-essential git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools python3-yaml
84+ - name : Install tox
85+ run : |
86+ python3 -m pip install tox
87+ - name : Run tests with coverage
88+ env :
89+ LANG : en_US.UTF-8
90+ run : |
91+ tox -e${{ matrix.toxenv }}
92+ - name : Upload coverage report to Codecov
93+ uses : codecov/codecov-action@v3
94+ lint :
95+ runs-on : ubuntu-latest
96+ strategy :
97+ matrix :
98+ include :
2799 - python-version : ' 3.11'
28100 toxenv : ' lint'
29101 container :
30102 image : ubuntu:22.04
31103 steps :
32- - uses : actions/checkout@v2
104+ - uses : actions/checkout@v3
33105 - name : Set up container
34106 env :
35107 DEBIAN_FRONTEND : noninteractive
@@ -46,15 +118,11 @@ jobs:
46118 add-apt-repository -y ppa:deadsnakes/ppa
47119 add-apt-repository -y ppa:gift/dev
48120 apt-get update -q
49- apt-get install -y build-essential curl git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools python3-yaml
121+ apt-get install -y build-essential git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools python3-yaml
50122 - name : Install tox
51123 run : |
52124 python3 -m pip install tox
53- - name : Download Codecov Uploader
54- run : |
55- curl -Os https://uploader.codecov.io/latest/linux/codecov
56- chmod +x codecov
57- - name : Run tests
125+ - name : Run linter
58126 env :
59127 LANG : en_US.UTF-8
60128 run : |
0 commit comments