Skip to content

Commit

Permalink
fix ci for python2
Browse files Browse the repository at this point in the history
  • Loading branch information
MJedr committed Jul 12, 2023
1 parent e784b35 commit 6c4e977
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,32 @@ on:
branches: [master]

jobs:
Test:
runs-on: ubuntu-latest
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [2.7, 3.8]

matrix:
include:
- python: python3
pip: pip3
- python: python2
pip: pip
steps:
- name: Checkout
uses: actions/checkout@v2
with:
python-version: ${{ matrix.python-version }}
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel "urllib3==1.25.11"
pip install -e .[tests]
${{ matrix.pip }} install --user --upgrade pip
${{ matrix.pip }} --no-cache-dir install --user setuptools wheel "urllib3==1.25.11"
${{ matrix.pip }} --no-cache-dir install --user -e .[tests,docs]
- name: Show python dependencies
run: |
${{ matrix.python }} --version
${{ matrix.pip }} freeze
- name: Show python dependencies
run: |
Expand Down

0 comments on commit 6c4e977

Please sign in to comment.