diff --git a/.github/workflows/maincheck.yml b/.github/workflows/maincheck.yml index f84e9a9ac..8a18da840 100644 --- a/.github/workflows/maincheck.yml +++ b/.github/workflows/maincheck.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12"] # "3.10" must be in quotes to not have it eval to 3.1 + python-version: ["3.10", "3.11", "3.12", "3.13"] # "3.10" must be in quotes to not have it eval to 3.1 steps: - uses: actions/setup-python@v4 with: @@ -27,8 +27,8 @@ jobs: - name: Run Main Test script run: python -c 'from music21.test.testSingleCoreAll import ciMain as ci; ci()' - name: Coveralls - if: ${{ matrix.python-version == '3.11' }} - env: + if: ${{ matrix.python-version == '3.12' }} + env: # when changing number above also change coverageM21.getCoverage GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_SERVICE_NAME: github run: coveralls diff --git a/music21/common/weakrefTools.py b/music21/common/weakrefTools.py index 8d961720e..478a5823f 100644 --- a/music21/common/weakrefTools.py +++ b/music21/common/weakrefTools.py @@ -31,10 +31,10 @@ def wrapWeakref(referent: _T) -> weakref.ReferenceType|_T: >>> a1 = Mock() >>> ref1 = common.wrapWeakref(a1) >>> ref1 - + >>> ref2 = common.wrapWeakref(ref1) >>> ref2 - + >>> ref3 = common.wrapWeakref(5) >>> ref3 5 diff --git a/music21/sites.py b/music21/sites.py index 3d2ca2164..59f5758d6 100644 --- a/music21/sites.py +++ b/music21/sites.py @@ -76,7 +76,7 @@ class SiteRef(common.SlottedObjectMixin, prebase.ProtoM21Object): >>> s.site >>> s.siteWeakref - + If you turn sites.WEAKREF_ACTIVE to False then .siteWeakref just stores another reference to diff --git a/music21/test/coverageM21.py b/music21/test/coverageM21.py index 3c8f2b5b9..9bf178fd1 100644 --- a/music21/test/coverageM21.py +++ b/music21/test/coverageM21.py @@ -40,12 +40,12 @@ def getCoverage(overrideVersion=False): # (The odds of a failure on the middle version are low if # the newest and oldest are passing) # - # Note the .minor == 11 -- that makes it only run on 3.11 + # Note the .minor == 12 -- that makes it only run on 3.12 # # When changing the version, be sure also to change # .github/maincheck.yml's line: - # if: ${{ matrix.python-version == '3.11' }} - if overrideVersion or sys.version_info.minor == 11: + # if: ${{ matrix.python-version == '3.12' }} + if overrideVersion or sys.version_info.minor == 12: try: # noinspection PyPackageRequirements import coverage # type: ignore