Skip to content

Conversation

@RoryBarnes
Copy link
Contributor

The previous workflow built distribution files on every OS/Python combination, then tried to merge all artifacts together. This caused tarball corruption during PyPI upload with 'zlib.error: invalid distance too far back'.

For pure Python packages, distribution files should be built only once.

Changes:

  • Split workflow into three jobs: build, test, upload_pypi
  • Build job: Runs once on ubuntu-latest with Python 3.11, creates sdist and wheel
  • Test job: Downloads built artifacts and tests installation on all OS/Python combinations
  • Upload job: Depends on both build and test, uploads single set of artifacts to PyPI

This prevents multiple builds of the same files and eliminates artifact conflicts.

The previous workflow built distribution files on every OS/Python combination,
then tried to merge all artifacts together. This caused tarball corruption
during PyPI upload with 'zlib.error: invalid distance too far back'.

For pure Python packages, distribution files should be built only once.

Changes:
- Split workflow into three jobs: build, test, upload_pypi
- Build job: Runs once on ubuntu-latest with Python 3.11, creates sdist and wheel
- Test job: Downloads built artifacts and tests installation on all OS/Python combinations
- Upload job: Depends on both build and test, uploads single set of artifacts to PyPI

This prevents multiple builds of the same files and eliminates artifact conflicts.
@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.9 on ubuntu-24.04)

48 tests   48 ✅  1m 9s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.9 on ubuntu-22.04)

48 tests   48 ✅  1m 19s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@codecov
Copy link

codecov bot commented Jan 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.42%. Comparing base (fd51531) to head (8e0340a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #34   +/-   ##
=======================================
  Coverage   72.42%   72.42%           
=======================================
  Files           2        2           
  Lines         486      486           
=======================================
  Hits          352      352           
  Misses        134      134           
Flag Coverage Δ
ubuntu-22.04-py3.9 72.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.11 on ubuntu-24.04)

48 tests   48 ✅  1m 15s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.14 on ubuntu-22.04)

48 tests   48 ✅  1m 4s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.14 on ubuntu-24.04)

48 tests   48 ✅  1m 7s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.10 on ubuntu-24.04)

48 tests   48 ✅  1m 22s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.11 on ubuntu-22.04)

48 tests   48 ✅  1m 25s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.10 on ubuntu-22.04)

48 tests   48 ✅  1m 28s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.13 on ubuntu-24.04)

48 tests   48 ✅  1m 23s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.13 on ubuntu-22.04)

48 tests   48 ✅  1m 35s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.12 on ubuntu-22.04)

48 tests   48 ✅  2m 27s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@github-actions
Copy link

github-actions bot commented Jan 3, 2026

Test Results (py3.12 on ubuntu-24.04)

48 tests   48 ✅  2m 32s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 8e0340a.

@RoryBarnes RoryBarnes merged commit 2d52f68 into main Jan 3, 2026
38 checks passed
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