Skip to content

Commit

Permalink
tests: fix for release candidates (and test on more versions of Python)
Browse files Browse the repository at this point in the history
Fixes #146
  • Loading branch information
michalc committed Sep 20, 2024
1 parent 8dd1382 commit 5b3ea05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,20 @@ jobs:
os: "ubuntu-20.04"
- python-version: "3.10.0"
os: "ubuntu-20.04"
- python-version: "3.11.0"
os: "ubuntu-20.04"
- python-version: "3.12.0"
os: "ubuntu-20.04"
- python-version: "3.13.0"
os: "ubuntu-20.04"
runs-on: ${{ matrix.os }}
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
- uses: "actions/setup-python@v5"
with:
python-version: '${{ matrix.python-version }}'
allow-prereleases: true
- name: "Install bsdcpio"
run: |
./install-libarachive.sh
Expand Down
2 changes: 1 addition & 1 deletion test_stream_zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ async def test():


@pytest.mark.skipif(
tuple(int(v) for v in platform.python_version().split('.')) < (3,7,0),
tuple(int(v) for v in platform.python_version()[:2].split('.')) < (3,7,0),
reason="contextvars are not supported before Python 3.7.0",
)
def test_copy_of_context_variable_available_in_iterable():
Expand Down

0 comments on commit 5b3ea05

Please sign in to comment.