Skip to content

Commit

Permalink
Remove py2 from github actions
Browse files Browse the repository at this point in the history
Although we haven't removed py2 support yet, it's no longer available in
github actions so it's been consistently failing in recent github action
runs.

Also add `fail-fast: false` to all matrices in github actions.
  • Loading branch information
fishy committed Jun 27, 2023
1 parent e88b4ad commit 0c1b4fc
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -84,6 +85,7 @@ jobs:
go:
- '1.19'
- '1.20'
fail-fast: false
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -349,7 +351,9 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["2.x", "3.x"]
python-version:
- "3.x"
fail-fast: false
steps:
- uses: actions/checkout@v3

Expand All @@ -370,21 +374,11 @@ jobs:
python --version
pip --version
- name: Python 2.x backport setup
if: matrix.python-version == '2.x'
run: |
python -m pip install --upgrade ipaddress backports.ssl_match_hostname
- name: Run bootstrap
run: ./bootstrap.sh

- name: Run configure 2.x
if: matrix.python-version == '2.x'
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-python/with-python/')
- name: Run configure 3.x
if: matrix.python-version != '2.x'
if: matrix.python-version == '3.x'
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-py3/with-py3/')
Expand Down

0 comments on commit 0c1b4fc

Please sign in to comment.