Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Fixup old Pythons.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed May 30, 2024
1 parent 298b567 commit 55d001c
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 22 deletions.
56 changes: 38 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]
jobs:
checks:
name: TOXENV=${{ matrix.tox-env }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
include:
Expand All @@ -15,56 +15,76 @@ jobs:
tox-env: package
steps:
- name: Checkout Lambdex
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- name: Check ${{ matrix.check-name }}
uses: pantsbuild/actions/run-tox@e63d2d0e3c339bdffbe5e51e7c39550e3bc527bb
with:
tox-env: ${{ matrix.tox-env }}
integration-tests:
integration-tests-27-36:
name: (${{ matrix.os }}) TOXENV=py${{ matrix.python-version[0] }}${{ matrix.python-version[1] }}-int-${{ matrix.it-selector }}-pex1.6
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- python-version: [2, 7]
os: macos-11
- python-version: [2, 7, 18]
os: macos-12
it-selector: "{pre,post}"
- python-version: [2, 7]
os: ubuntu-20.04
- python-version: [2, 7, 18]
os: ubuntu-22.04
it-selector: "{pre,post}"
- python-version: [3, 6]
os: ubuntu-20.04
- python-version: [3, 6, 15]
os: ubuntu-22.04
it-selector: "{pre,post}"
steps:
- name: Checkout Lambdex
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version[0] }}${{ matrix.python-version[1] }}
# Upgrade node16 -> node20: Out for review here:
# https://github.com/gabrielfalcao/pyenv-action/pull/444
uses: pex-tool/pyenv-action@baec18679698d2f80064cc04eb9ad0c8dc5ca8f8
env:
ENSUREPIP: no
with:
default: "${{ join(matrix.python-version, '.') }}"
command: pip install -U tox
- name: Run Integration Tests
run: tox -e py${{ matrix.python-version[0] }}${{ matrix.python-version[1] }}-int-${{ matrix.it-selector }}-pex1.6
integration-tests-37-312:
name: (${{ matrix.os }}) TOXENV=py${{ matrix.python-version[0] }}${{ matrix.python-version[1] }}-int-${{ matrix.it-selector }}-pex1.6
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- python-version: [3, 7]
os: ubuntu-20.04
os: ubuntu-22.04
it-selector: "{pre,post}"
- python-version: [3, 8]
os: ubuntu-20.04
os: ubuntu-22.04
it-selector: "{pre,post}"
- python-version: [3, 9]
os: ubuntu-20.04
os: ubuntu-22.04
it-selector: "{pre,post}"
- python-version: [3, 10]
os: macos-11
os: macos-12
it-selector: "post"
- python-version: [3, 10]
os: ubuntu-20.04
os: ubuntu-22.04
it-selector: "post"
- python-version: [3, 11]
os: ubuntu-20.04
os: ubuntu-22.04
it-selector: "post"
- python-version: [3, 12]
os: ubuntu-22.04
it-selector: "post"
steps:
- name: Checkout Lambdex
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Python ${{ join(matrix.python-version, '.') }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "${{ join(matrix.python-version, '.') }}"
- name: Run Integration Tests
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
determine-tag:
name: Determine the release tag to operate against.
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
release-tag: ${{ steps.determine-tag.outputs.release-tag }}
release-version: ${{ steps.determine-tag.outputs.release-version }}
Expand All @@ -33,16 +33,16 @@ jobs:
fi
pypi:
name: Publish sdist and wheel to PyPI
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
environment: Release
needs: determine-tag
steps:
- name: Checkout ${{ needs.determine-tag.outputs.release-tag }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.determine-tag.outputs.release-tag }}
- name: Setup Python 3.9
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Publish ${{ needs.determine-tag.outputs.release-tag }}
Expand Down

0 comments on commit 55d001c

Please sign in to comment.