Skip to content

Commit 29d0e96

Browse files
authored
Add support github-action python2.7 by the use of a container (#309)
Adding support to python2.7 by the use of a container, github-actions deprecated py2.7
1 parent a6a2110 commit 29d0e96

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/python-package.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,19 @@ on: [push, pull_request]
88
jobs:
99
build:
1010
runs-on: ubuntu-20.04
11+
container:
12+
image: python:2.7.18-buster
1113
environment: CI
1214
steps:
13-
- uses: actions/checkout@v2
14-
- name: Set up Python 2.7
15-
uses: actions/setup-python@v2
16-
with:
17-
python-version: 2.7
18-
15+
- name: Checkout project
16+
uses: actions/checkout@v3
1917
- name: Install dependencies
2018
run: |
21-
sudo apt-get update -qq
22-
sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
23-
pip install --force-reinstall --no-binary lxml lxml
24-
pip install .
25-
pip install -e ".[test]"
19+
apt-get update -qq
20+
apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
21+
pip install --disable-pip-version-check --no-cache-dir --force-reinstall --no-binary lxml lxml
22+
pip install --disable-pip-version-check --no-cache-dir .
23+
pip install --disable-pip-version-check --no-cache-dir -e ".[test]"
2624
2725
- name: Lint
2826
run: |

0 commit comments

Comments
 (0)