Skip to content

Commit

Permalink
Fix Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Apr 17, 2024
1 parent f79a10e commit 46c4f9d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,17 @@ jobs:
# might also save some build time?
unzip -n dist/zope.interface-*whl -d src
pip install -U -e .[test]
- name: Run tests and report coverage
# Once with C extensions, once without. Yes, this runs them
# twice on PyPy.
- name: Run tests with C extensions
if: ${{ !startsWith(matrix.python-version, 'pypy') }}
run: |
coverage run -p -m unittest discover -s src
PURE_PYTHON=1 coverage run -p -m unittest discover -s src
- name: Run tests without C extensions
run: |
coverage run -p -m unittest discover -s src
env:
PURE_PYTHON: 1
- name: Report Coverage
run: |
coverage combine
coverage report --ignore-errors --show-missing
- name: Submit to Coveralls
Expand Down
27 changes: 9 additions & 18 deletions .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,26 +69,17 @@ additional-install = [
" # might also save some build time?",
" unzip -n dist/zope.interface-*whl -d src",
" pip install -U -e .[test]",
"- name: Run tests and report coverage",
" # Once with C extensions, once without. Yes, this runs them",
" # twice on PyPy.",
"- name: Run tests with C extensions",
" if: ${{ !startsWith(matrix.python-version, 'pypy') }}",
" run: |",
" coverage run -p -m unittest discover -s src",
" PURE_PYTHON=1 coverage run -p -m unittest discover -s src",
"- name: Run tests without C extensions",
" run: |",
" coverage run -p -m unittest discover -s src",
" env:",
" PURE_PYTHON: 1",
"- name: Report Coverage",
" run: |",
" coverage combine",
" coverage report --ignore-errors --show-missing",
]

[appveyor]
global-env-vars = [
"# Currently the builds use @mgedmin's Appveyor account. The PyPI token",
"# belongs to zope.wheelbuilder, which is managed by @mgedmin and @dataflake.",
"",
"global:",
" TWINE_USERNAME: __token__",
" TWINE_PASSWORD:",
" secure: aoZC/+rvJKg8B5GMGIxd1X2q2bz7SMl8G3810BID9U8PXFqM0FbWaK9fZ9qcU0UyG2xJsK56Fb6+L6g27I0Lg8UFNhlU1zLAuMSgJQbHsqawFgSY067IdJB68pp34d/oEyxMrJvAKENHH77Fe4KGDssLlk5WnnYS3DA9b66p5imP+1DTtkq5/gMtoG4nZTBtVos7J2kkYTQ5t4BjzTQxPMC3bStNnvuuB0orX4AoCyTrOR1wdZFiNKLzbVnrJCNn24t/n3kG9WrxbnKlrbOm4A==",
]
test-steps = [
"- python -m unittest discover -s src",
]
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
6.4 (unreleased)
================

- Build windows wheels on GHA.

6.3 (2024-04-12)
================
Expand Down

0 comments on commit 46c4f9d

Please sign in to comment.