Skip to content

Add upload tests and CI workflow#72

Open
Narsil wants to merge 15 commits into
mainfrom
add-upload-tests-and-ci
Open

Add upload tests and CI workflow#72
Narsil wants to merge 15 commits into
mainfrom
add-upload-tests-and-ci

Conversation

@Narsil
Copy link
Copy Markdown
Collaborator

@Narsil Narsil commented Apr 11, 2025

This PR adds comprehensive testing and CI improvements to the hf_transfer package.

Changes

1. Upload Tests

  • Added comprehensive upload tests covering:
    • Basic upload functionality
    • Error handling for invalid files
    • Error handling for invalid chunk sizes
    • Error handling for invalid parallel files count

2. CI Workflow

Added a new GitHub Actions workflow that tests the package across:

  • Operating systems: Ubuntu and macOS
  • Python versions: 3.8 through 3.12
  • Rust versions: stable and nightly (nightly excluded on macOS)

Each test run includes:

  • Python and Rust environment setup
  • System dependencies installation
  • Python tests execution
  • Rust clippy linting
  • rustfmt code formatting checks

3. Code Updates

  • Updated dependencies in pyproject.toml
  • Enhanced error handling in lib.rs

Testing

All tests are passing locally. The new CI workflow will ensure compatibility across different environments.

Related Issues

This PR addresses the need for comprehensive upload testing and CI coverage.

Narsil added 2 commits March 1, 2025 12:55
…for basic functionality and error cases\n- Add GitHub Actions workflow for testing across multiple Python and Rust versions\n- Update dependencies and error handling in lib.rs
@Narsil Narsil requested a review from McPatate April 11, 2025 12:55
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