Skip to content

GitHub actions: Build wheels and run tests against the wheels instead of source tree#236

Merged
fohrloop merged 1 commit into
devfrom
github-actions-update
Apr 3, 2024
Merged

GitHub actions: Build wheels and run tests against the wheels instead of source tree#236
fohrloop merged 1 commit into
devfrom
github-actions-update

Conversation

@fohrloop
Copy link
Copy Markdown
Member

@fohrloop fohrloop commented Apr 2, 2024

Update GitHub Actions pipelines

  • Build sdist from source tree and wheel from sdist
  • Use the built wheel in the testing steps in place of source tree. This way the wheel gets tested.
  • Use a test matrix instead of separate yaml files for each platform. This was just to make it possible to run everything in a single workflow and to simplify passing artifacts (the built wheel) around.
  • A bit larger test matrix than before. Previously windows and macos were only running tests on python3.10 (now also 3.7 and 3.12 included)

tox

  • add "tox -e build" command just for creating the sdist and wheel
  • Add --skip-build flag to tox command. This will skip building the wheel and use the wheel from the dist/ folder as needed. This was needed for the pipelines.

@fohrloop fohrloop changed the title GitHub actions update GitHub actions: Build wheels and run tests against the wheels instead of source tree Apr 3, 2024
Update GitHub Actions pipelines
* Build sdist from source tree and wheel from sdist
* Use the built wheel in the testing steps in place of source tree. This
  way the wheel gets tested.
* Use a test matrix instead of separate yaml files for each platform.
  This was just to make it possible to run everything in a single
  workflow and to simplify passing artifacts (the built wheel) around.
* A bit larger test matrix than before. Previously windows and macos
  were only running tests on python3.10 (now also 3.7 and 3.12 included)

tox
* add "tox -e build" command just for creating the sdist and wheel
* Add --skip-build flag to tox command. This will skip building the wheel
and use the wheel from the dist/ folder as needed. This was needed for
the pipelines.
@fohrloop fohrloop force-pushed the github-actions-update branch from 27aa5a2 to f3eedf1 Compare April 3, 2024 21:43
@fohrloop fohrloop merged commit 898d54b into dev Apr 3, 2024
@fohrloop fohrloop deleted the github-actions-update branch April 3, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant