Skip to content

Test against cpython tests #42

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

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
33f5b69
Copy cpython tests from 3.12.6
itziakos Sep 28, 2024
4e8863a
Remvoe tests for PyZipFile
itziakos Sep 28, 2024
b66ddbb
Adapt test_zipfile.test_core tests to check against zipfile2
itziakos Sep 28, 2024
532ba77
Ignore python compiled cache
itziakos Sep 29, 2024
660eb3f
Move python 3.12 tests to a separate folder
itziakos Sep 29, 2024
45504c1
Copy tests for all supported Python versions
itziakos Sep 29, 2024
98462e9
rename integration test folders
itziakos Oct 5, 2024
8c45247
Run integration tests on github test workflow
itziakos Oct 5, 2024
b20c95f
minor cleanup
itziakos Oct 5, 2024
5014b70
fix flake8 errors
itziakos Oct 5, 2024
d0eb7b2
Fix folder name
itziakos Oct 5, 2024
97f5027
Fix compatibility with Python < 3.11
itziakos Oct 5, 2024
8f433be
Adapt python tests to use and test zipfile2.ZipFile
itziakos Oct 5, 2024
00cd502
Use unittest for running the python tests
itziakos Oct 5, 2024
6772185
Use test code from the right version
itziakos Oct 26, 2024
59732c6
Fix Python 3.11 compatibility
itziakos Oct 26, 2024
e5dabd9
Remvoe tests that test the support functions
itziakos Oct 26, 2024
0b2e263
Fix flake8 errors
itziakos Oct 26, 2024
3f4bf94
Update test.yml
itziakos Oct 26, 2024
fe867c3
fix-typo
itziakos Oct 26, 2024
8dacc71
Update test.yml
itziakos Oct 26, 2024
12bfc3e
Update Python 3.10 integration tests
itziakos Nov 10, 2024
45e8027
Fix test_open_via_zip_info for Python 3.9
itziakos Jan 4, 2025
9ac3ff6
Fix import for the test example string
itziakos Jan 4, 2025
113b2cd
Skip cpython 3.12 tests that are expected to failu
itziakos Feb 8, 2025
d844842
Copy check from Python 3.12
itziakos Feb 8, 2025
a24fa3f
Test on windows and macos
itziakos Feb 8, 2025
a73df21
Update cpython 3.12 integration tests
itziakos Feb 9, 2025
6f55014
Update intergration testing for Python 3.8.x
itziakos Feb 15, 2025
79abb9b
Fix python 3.9 integration testing and minor cleanup
itziakos Feb 15, 2025
4e9a64c
Update integration tests for Python 3.10.x
itziakos Feb 15, 2025
88786e5
use unittest for the integration tests
itziakos Feb 22, 2025
790e385
Update test.yml
itziakos Feb 22, 2025
fa61d73
Skip tests for Python versions that where not fixed
itziakos Feb 22, 2025
7d728a3
Record which checkout was used for the integration tests
itziakos Feb 22, 2025
325082b
Update test.yml
itziakos Feb 22, 2025
53031dd
Update intergration test checkouts
itziakos Feb 22, 2025
3072ce8
Add missing import
itziakos Feb 22, 2025
4576f03
Update test.yml
itziakos Feb 22, 2025
4cef1f7
More conditional skips for 3.10.x differences
itziakos Feb 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ on:
jobs:
tests:
strategy:
max-parallel: 3
matrix:
python-version: [3.8, 3.11, 3.12]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -25,6 +26,10 @@ jobs:
run: python -m pip install -r "dev_requirements.txt"
- name: Test with haas
run: python -m haas zipfile2
- name: Integration tests
run: python -m haas .
working-directory: cpython-tests/${{ matrix.python-version }}

code-lint:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ build
.tox
zipfile2/_version.py
zipfile2*egg-info
__pycache__
Loading
Loading