Skip to content
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

Test against Python 3.13 #587

Merged
merged 9 commits into from
Sep 27, 2024
Merged

Test against Python 3.13 #587

merged 9 commits into from
Sep 27, 2024

Conversation

jrbourbeau
Copy link
Member

In preparation for Python 3.13 coming out (looks like sometime next week https://peps.python.org/pep-0719/#schedule)

Closes #581

Copy link
Member Author

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests pass on Python 3.13, but coverage fails due to not covering three lines

Wrote XML report to coverage.xml
Name                          Stmts   Miss  Cover   Missing
-----------------------------------------------------------
toolz/__init__.py                [14](https://github.com/pytoolz/toolz/actions/runs/11076807214/job/30780696578?pr=587#step:6:15)      0   100%
toolz/_signatures.py            143      3    98%   732, 746, 768
toolz/curried/__init__.py        49      0   100%
toolz/curried/exceptions.py      10      0   100%
toolz/curried/operator.py         8      0   100%
toolz/dicttoolz.py              105      0   100%
toolz/functoolz.py              412      0   100%
toolz/itertoolz.py              363      0   100%
toolz/recipes.py                  9      0   100%
toolz/sandbox/__init__.py         2      0   100%
toolz/sandbox/core.py            37      0   100%
toolz/sandbox/parallel.py        19      0   100%
toolz/utils.py                    7      0   100%
-----------------------------------------------------------
TOTAL                          1[17](https://github.com/pytoolz/toolz/actions/runs/11076807214/job/30780696578?pr=587#step:6:18)8      3    99%
Coverage failure: total of 99 is less than fail-under=100

Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (fe81c19) to head (74bfc04).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #587   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        13           
  Lines         1178      1178           
=========================================
  Hits          1178      1178           
Flag Coverage Δ
?

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -42,9 +43,8 @@ jobs:
if: (! contains(matrix.python-version, 'pypy'))
run: |
coverage xml
coverage report --show-missing --fail-under=100
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this line here as it requires every single CI build to have 100% coverage. This isn't quite right in cases when there are Python version-specific lines of code (which we have in toolz).

Instead, let's merge coverage reports across all CI build with codecov to make sure that, summed across all Python versions, we have 100% coverage.

Comment on lines +48 to +50
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were having coverage report upload issues, so I had to bump the version of the codecov action being used here

@jrbourbeau jrbourbeau merged commit fec5fd6 into pytoolz:master Sep 27, 2024
11 checks passed
@jrbourbeau jrbourbeau deleted the test-313 branch September 27, 2024 20:35
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.

Test failures with Python 3.13
1 participant