Skip to content

Commit

Permalink
Fix testcase for py3.6/3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Oct 30, 2023
1 parent 847f864 commit b270f26
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,29 @@ jobs:
steps:
- uses: actions/checkout@v3

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

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

# Python 3.6 & 3.7 cannot install directly from a pyproject.toml
# Instead, build a wheel from py3.7 and then install it
- name: Install via wheel
if: ${{ matrix.python-version == '3.6' or matrix.python-version == '3.5' }}
run: |
python3.7 -m pip install build
python3.7 -m build
python --version
python -m pip install ./dist/*.whl
- name: Install
if: ${{ matrix.python-version != '3.6' and matrix.python-version != '3.5' }}
run: |
python -m pip install .
Expand Down

0 comments on commit b270f26

Please sign in to comment.