Skip to content

Commit 6a1c694

Browse files
Remove npm-publish.yml, add Python 3.13 to CI, harden checkout permissions (#12)
- Remove .github/workflows/npm-publish.yml (Python repo, no npm package) - Add Python 3.13 to CI test matrix - Add persist-credentials: false to all checkout steps - Add permissions: contents: read to ci.yml top level
1 parent 5d74c41 commit 6a1c694

3 files changed

Lines changed: 8 additions & 31 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
runs-on: ubuntu-latest
1215
strategy:
1316
matrix:
14-
python-version: ["3.10", "3.11", "3.12"]
17+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1518

1619
steps:
1720
- uses: actions/checkout@v6
21+
with:
22+
persist-credentials: false
1823

1924
- name: Set up Python ${{ matrix.python-version }}
2025
uses: actions/setup-python@v6
@@ -30,4 +35,3 @@ jobs:
3035
- name: Run tests
3136
run: |
3237
python -m pytest tests/ -v --cov=src --cov-report=term-missing
33-

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@v6
25+
with:
26+
persist-credentials: false
2527

2628
- name: Set up Python 3.11
2729
uses: actions/setup-python@v6
@@ -54,4 +56,3 @@ jobs:
5456
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
5557
run: |
5658
twine upload --repository testpypi dist/* --verbose
57-

0 commit comments

Comments
 (0)