Skip to content

Commit

Permalink
Fix pip install command
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Jun 3, 2023
1 parent 446e427 commit 764315f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ name: python

on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
# Generate the sdist first. We'll use it to created the wheels.
# https://packaging.python.org/en/latest/flow#the-source-distribution-sdist
sdist:
name: Generate sdist
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,6 +45,7 @@ jobs:
path: ./dist/*.tar.gz

# Create the wheels. It'll use the sdist to confirm that we can ocnpile MaterialX from the sdist.
# https://packaging.python.org/en/latest/flow#the-built-distributions-wheels
wheels:
name: Generate wheels
runs-on: ${{ matrix.os }}
Expand All @@ -57,6 +64,7 @@ jobs:
path: sdist

- name: Build wheels
# https://cibuildwheel.readthedocs.io/en/stable/
uses: pypa/[email protected]
with:
# Build from the sdist. We want to make sure it's valid and works as expected.
Expand Down Expand Up @@ -101,9 +109,7 @@ jobs:
path: wheels

- name: Install wheel
# Note that pip will install the right wheel. It's able to select the wheel based on the current
# platform, python version, etc.
run: python -m pip install wheels/*.whl
run: python -m pip install --find-links wheels --no-index

- name: Python tests
run: |
Expand Down

0 comments on commit 764315f

Please sign in to comment.