Skip to content

Commit

Permalink
Fix py3.5 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Oct 15, 2024
1 parent 509c82f commit 71f4ce8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
# older versions need older OS
- python-version: 3.5
os: ubuntu-20.04
setup-python-env:
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
- python-version: 3.6
os: ubuntu-20.04

Expand All @@ -44,14 +46,15 @@ jobs:

- name: Set up Python 3.7 to bootstrap py3.6 and py3.5
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.5' }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.7

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

# Python 3.6 & 3.7 cannot install directly from a pyproject.toml
# Instead, build a wheel from py3.7 and then install it
Expand Down Expand Up @@ -106,7 +109,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

Expand All @@ -128,7 +131,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"

Expand All @@ -151,7 +154,7 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.10"
Expand All @@ -163,7 +166,7 @@ jobs:
- name: Build
run: python -m build

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: |
dist/*.tar.gz
Expand All @@ -182,7 +185,7 @@ jobs:
# Only publish when a GitHub Release is created.
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand Down

0 comments on commit 71f4ce8

Please sign in to comment.