Skip to content

Commit

Permalink
CI: Build wheels with right version & test them (#40)
Browse files Browse the repository at this point in the history
- Checkout full repo history so setuptools_scm can work correctly
- Induce cibuildwheel to run the tests after building the wheel
  • Loading branch information
jordemort authored Apr 21, 2022
1 parent 3a73d84 commit 9566984
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ jobs:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-python@v2
name: Install Python
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ write_to = "src/pystarlark/scmversion.py"
[tool.isort]
profile = "black"
lines_between_types = 1

[tool.cibuildwheel]
test-requires = "pytest"
test-command = "pytest {project}/tests"

0 comments on commit 9566984

Please sign in to comment.