Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] CI for testing and wheel builds #4

Closed
wants to merge 23 commits into from

Conversation

altendky
Copy link

@altendky altendky commented Sep 27, 2019

#3

WIP for:

  • It's 2am so... there's probably something
  • Create an sdist artifact
  • pytest-azurepipelines should be outputting the test results but doesn't seem to be
  • Create a tox environment(s?) for building, maybe?
  • Uncomment the trigger: section
  • Uncomment or remove the publish job
  • Why does only Windows CPython 3.7 get both x86 and x86_64?

@altendky
Copy link
Author

Note: I understand you are busy and that this won't get handled right away. I'm just getting it setup now for later consideration when you have a chance. :]

I tried to create a build in Azure using this repo rather than my fork so it would report results into this PR, but I can't quite figure out how to make the connection. Here's my build against my repo.

https://dev.azure.com/altendky/siphash-cffi/_build?definitionId=7&_a=summary

If you go to the latest build you can see Artifacts as shown in the upper right of this screenshot.
image

Clicking that then dist/ will download a .zip with all the build results.

image

So a quick overview of the structure of this build. There are four basic steps:

  • generate the build matrix (OS, Python version, etc combinations)
  • generate the test matrix
  • run the builds to create wheels
  • run the tests using those wheels

I wrote up ci/matrix.py for use by https://github.com/altendky/romp which needed to dynamically pick what platforms and python versions etc it would run in any given build. We don't need that but at least for a quick start this was an easy and familiar way for me to generate the choice of builds.

If you are interested in this and comfortable with using Microsoft Azure Pipelines for the CI then you can go ahead and get started setting up an official pipeline. As I recall you bounce back and forth between Azure and GitHub a few times but... just keep going I guess. :]

https://github.com/marketplace/azure-pipelines

I'll keep working on the WIP list.

@altendky
Copy link
Author

image

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.

2 participants