Skip to content

Commit

Permalink
Add Python 3.13 test action
Browse files Browse the repository at this point in the history
Only create test coverage for 3.11, it's slow on 3.12 and 3.13.
  • Loading branch information
xxyzz committed Oct 9, 2024
1 parent 0c43779 commit 4d90775
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -39,17 +39,21 @@ jobs:
python -m pip install --use-pep517 -e '.[dev]'
# Enable `sys.monitoring` for 3.12 to improve coverage tests performance
# See GitHub issue: nedbat/coveragepy#1665
- run: echo "COVERAGE_CORE=sysmon" >> $GITHUB_ENV
if: matrix.python-version == '3.12'
# - run: echo "COVERAGE_CORE=sysmon" >> $GITHUB_ENV
- run: make test_coverage
if: matrix.python-version == '3.11'
env:
PYTHONWARNINGS: default
- run: make test
if: matrix.python-version != '3.11'
env:
PYTHONWARNINGS: default
- run: |
make coverage_report
make github_pages REPO=${{ github.repository }} SHA=${{ github.sha }}
if: github.ref_name == 'master' && matrix.python-version == '3.12'
if: github.ref_name == 'master' && matrix.python-version == '3.11'
- uses: actions/upload-pages-artifact@v3
if: github.ref_name == 'master' && matrix.python-version == '3.12'
if: github.ref_name == 'master' && matrix.python-version == '3.11'

deploy:
if: github.ref_name == 'master'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
python-version: 3.13
- run: python -m pip install requests
- run: python tools/test_schedule.py
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Text Processing",
"Topic :: Text Processing :: Linguistic",
]
Expand Down

0 comments on commit 4d90775

Please sign in to comment.