-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jean-Christophe Morin <[email protected]>
- Loading branch information
1 parent
446e427
commit 764315f
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|
@@ -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. | ||
|
@@ -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: | | ||
|