Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support github-action python2.7 by the use of a container #309

Merged
merged 10 commits into from
Jul 21, 2023
20 changes: 9 additions & 11 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,19 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
container:
image: python:2.7.18-buster
environment: CI
steps:
- uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
with:
python-version: 2.7

- name: Checkout project
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
pip install --force-reinstall --no-binary lxml lxml
pip install .
pip install -e ".[test]"
apt-get update -qq
apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
pip install --disable-pip-version-check --no-cache-dir --force-reinstall --no-binary lxml lxml
pip install --disable-pip-version-check --no-cache-dir .
pip install --disable-pip-version-check --no-cache-dir -e ".[test]"

- name: Lint
run: |
Expand Down